:root {
    --main-orange: #f7953d;
    --main-orange-dark: #e07d25;
    --dark-gray: #2b2b2b;
    --light-bg: #fdfaf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: large;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-gray);
    line-height: 1.6;

}

header {
    background-color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

a {
    text-decoration: none;
    color: #2b2b2b;

}


.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-orange);
}

/* ナビゲーションバー */
nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 60px;
        right: 20px;
        background: white;
        border: 1px solid #ddd;
        padding: 10px 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        display: none;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav.open {
        display: block;
    }
}



/* トップ */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 180px 40px 80px 40px;
    /* background-color: white; */
    background: linear-gradient(-225deg, #f68712 0%, #f5f5f5 80%, #ffb03f 100%);
    position: relative;
    color: white;

    /* 枠外非表示 */
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 50%;
    word-break: keep-all;
    /* 単語の途中での改行を防ぐ */
    white-space: normal;
}

.hero h1 {
    font-size: 58px;
    margin-bottom: 20px;
    /* color: var(--main-orange); */
    color: white;
}

.hero p {
    font-size: 20px;
}

.hero-img img {
    max-width: 400px;
}

.circle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(246, 139, 30, 0.2);
    /* オレンジ半透明 */
    pointer-events: none;
    animation: float-up linear;
}

@keyframes float-up {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-1000px);
        opacity: 0;
    }
}

/* .serviceBackground {
    background: linear-gradient(120deg, #f68712, #fff4e5);

} */




/* セクション */
.section {
    padding: 100px 40px;
    background-color: var(--light-bg);
    max-width: 1500px;
    margin: 0 auto;

}

.section h2 {
    font-size: 48px;
    color: var(--main-orange);
    margin-bottom: 20px;
    text-align: center;
}

.sectionShort {
    margin: 0 auto;
    max-width: 1200px;
}

.sectionMini {
    margin: 0 auto;
    max-width: 1000px;
}

.grid {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.grid h3 {
    font-size: 28px;
}

h4 {
    font-size: 24px
}

.card,
.card1 {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* cursor: pointer; */
    transition: background-color 0.3s ease;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* .text-normal{
    font-weight: bold;
} */



/* ボックスのカラー */
.hover-box {
    background-color: white;
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* businessサブタイ下線 */
.service-title.with-underline::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #f7953d;
    margin: 8px auto 8px;
    border-radius: 2px;
}


/* 問い合わせ */
.contact-form {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.contact-background {
    background: linear-gradient(120deg, #fff4e5, #fff4e5);

}

.formTable {
    width: 100%;
    border-collapse: collapse;
}

.formTable th {
    text-align: left;
    padding: 10px;
    vertical-align: top;
    width: 30%;
    font-weight: 600;
}

.formTable td {
    padding: 10px;
}

.formTable input[type=\"text\"],
.formTable input[type=\"email\"],
.formTable textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.require {
    color: red;
    font-size: 12px;
    margin-left: 5px;
}

.submit {
    text-align: center;
    margin-top: 20px;
}

.submit input[type=\"submit\"] {
    background-color: var(--main-orange);
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}



/* スマホ対応 */
@media (max-width: 600px) {
    .service-title {
        font-size: 20px;

    }

    .service-title.with-underline::after {
        width: 50%;
        height: 2px;
    }

    .grid .card .text-hover {
        display: block;
        color: #f7953d;
    }

    .logo img {
        width: 100%;

    }
}


/* フッター */
footer {
    background-color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.grid img {
    object-fit: contain;
    height: 75px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    /* nav ul {
	display: none;
  } */

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-text,
    .hero-img img {
        max-width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* 問い合わせモバイル対応 */
    .formTable th,
    .formTable td {
        display: block;
        width: 100%;
    }

    .formTable th {
        margin-top: 15px;
    }

    .submit input[type=\"submit\"] {
        width: 100%;
    }
}



/* servicesのみCSS */
.flow-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 120px;
    text-align: center;
}

.step img.step-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.step p {
    margin: 0;
    font-size: 14px;
}

.arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* スマホ表示：縦並び、画像左・テキスト右、矢印↓に */
@media (max-width: 768px) {
    .flow-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .step {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    .step img.step-icon {
        margin: 0 12px 0 0;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }
}



/* -------パートナーシップ------------------------------------------- */


.section-partner {
    padding: 100px 40px;
    /* background-color: var(--light-bg); */
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.card2 {
    background-color: white;
    padding: 20px;
    border: 3px solid #fad8b9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* cursor: pointer; */
    transition: background-color 0.3s ease;
    z-index: 0;
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
}

.card2 img {
    vertical-align: middle;
    height: 30px;
}

.partnership-box {
    background-color: white;
    padding: 20px;
    border: 4px solid #fad8b9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* cursor: pointer; */
    transition: background-color 0.3s ease;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bottom-content {
    display: grid;
    grid-template-columns: 1fr 5fr;
}

.partnership-border {
    border: 1px solid #fad8b9;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.partnership-logo {
    justify-content: center;
    align-items: center;
}

.description {
    padding: 10px;
    text-align: left;
}

.partnership-box .top-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}



/* スマホサイズ用のレスポンシブ対応 */
@media (max-width: 768px) {

    .bottom-content,
    .grid2 {
        grid-template-columns: 1fr;
        /* ← 縦並びに変更 */
    }

    .section {
        padding: 40px 10px;
    }




    /* -------プライバシーポリシー------------------------------------------- */


    /* スマホサイズ用のレスポンシブ対応 */
    @media (max-width: 768px) {
        .sectionPP {
            padding: 40px 10px;
        }

        .sectionPP h2 {
            font-size: 26pt;
            color: var(--main-orange);
            margin-bottom: 20px;
            text-align: center;
        }

        .sectionPP dl.list08 dt {
            border-bottom: dashed 3px #F1B354;
            border-left-width: 6px;
            border-left-style: solid;
            border-left-color: #F1B354;
            line-height: 1.4em;
            width: 95%;
            clear: left;
            margin: 0 0 3% 0;
            font-size: 1.1em;
            font-weight: bold;
        }

        .hero h1 {
            font-size: 30px;
        }

        .step p {
            margin: 0;
            font-size: 25px;
        }

        .arrow {
            transform: rotate(90deg);
            margin: 0 auto;
        }

    }

}