/* ====================
    カラーパレット
   ==================== */
/* ====================
    カラーパレット
   ==================== */
:root {
    --primary-color: #2c3e50;
    /* 濃紺 */
    --accent-color: #3498db;
    /* ブルー */
    --text-color: #444444;
    --background-color: #f8f9fa;
    --light-gray: #e9ecef;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 10px;

}

/* ====================
    基本設定
   ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    width: 100%;
}

/* ====================
    共通クラス
   ==================== */
.inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    letter-spacing: 0.05em;
    opacity: 0;
    /* アニメーションの初期状態 */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section__heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.center {
    text-align: center;
    margin: 0 auto;
}

/* ====================
    ヘッダー
   ==================== */
.header {
    background-color: #fff;
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.header__logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.header__nav {
    display: none;
    /* 初期は非表示（モバイルファースト） */
}

@media (min-width: 768px) {
    .header__nav {
        display: block;
    }
}

.header__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__item {
    margin-left: 30px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.header__item:nth-child(1) {
    animation-delay: 0.2s;
}

.header__item:nth-child(2) {
    animation-delay: 0.4s;
}

.header__item:nth-child(3) {
    animation-delay: 0.6s;
}

.header__item:nth-child(4) {
    animation-delay: 0.8s;
}

.header__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.header__link:hover::after {
    width: 100%;
}

.header__link--contact {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid var(--accent-color);
}

.header__link--contact:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* ====================
    ヒーローセクション
   ==================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.4)), url('../img/hero-image.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero__catchcopy {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1s forwards;
}

.hero__subtext {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

/* ====================
    理念セクション
   ==================== */
.philosophy {
    text-align: center;
}

.philosophy__text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.philosophy__button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.philosophy__button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* ====================
    強みセクション
   ==================== */
.strength__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.strength__item {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.strength__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* サービス一覧セクション */
.services__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 90%;
}

.services__item {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.services__item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 導入事例セクション */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cases__item {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cases__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* =================================================================
customer
====================================================================*/
.customer {}

.customer__inner {}

.customer__item {
    display: flex;
    justify-content: space-between;
}

.customer__item-doc {}

.customer__head {
    width: 50%;
}

.customer__item-img {
    width: 50%;

}




/* お問い合わせセクション */
.contact__form {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ====================
    フッター
   ==================== */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.footer__contact-section {
    text-align: center;
    margin-bottom: 40px;
}

/* ====================
    アニメーションクラス
   ==================== */
.animate {
    opacity: 1;
    transform: translateY(0);
    transform: scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .header__inner {
        padding: 10px 20px;
    }

    .header__list {
        display: none;
    }

    .hero__catchcopy {
        font-size: 2.5rem;
    }

    .section__heading {
        font-size: 2rem;
    }

    .footer__contact-button {
        font-size: 1rem;
        padding: 12px 30px;
    }
}



/* =================================================================
   レスポンシブ対応 & ハンバーガーメニュー
====================================================================*/

/* ハンバーガーボタン */
.header__hamburger {
    display: none;
    /* PCでは非表示 */
    position: relative;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 150;
}

.header__hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

.header__hamburger span:nth-child(1) {
    top: 0;
}

.header__hamburger span:nth-child(2) {
    top: 10px;
}

.header__hamburger span:nth-child(3) {
    bottom: 0;
}

/* ハンバーガーメニュー is-active時 */
.header__hamburger.is-active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* SPレイアウト (768px未満) */
@media (max-width: 767px) {
    .inner {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }

    .section__heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .header__hamburger {
        display: block;
        /* SPで表示 */
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: -100%;
        /* 初期状態では画面外に隠す */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        transition: all 0.3s;
        z-index: 120;
    }

    .header__nav.is-active {
        left: 0;
        /* is-activeで表示 */
    }

    .header__list {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .header__item {
        margin: 0;
    }

    .header__link {
        display: block;
        padding: 20px 0;
        font-size: 1.2rem;
    }

    .header__link--contact {
        padding: 10px 25px;
    }

    .hero {
        background-attachment: scroll;
        /* SPでは背景固定を解除 */
    }

    .hero__catchcopy {
        font-size: 1.8rem;
    }

    .hero__subtext {
        font-size: 1rem;
    }

    /* 理念・強みセクション */
    .strength__list {
        grid-template-columns: 1fr;
        /* 1カラムにする */
    }

    /* サービスセクション */
    .services__list {
        grid-template-columns: 1fr;
        /* 1カラムにする */
    }

    .customer__item {
        flex-direction: column;
    }

    .customer__head {
        width: 100%;
    }

    .customer__item-img {
        width: 100%;

    }


    .cards__inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-catch-copy .is-pc {
        display: inline;
        /* スマホでは<br>を有効化 */
    }

    .contact {
        width: 100%;
    }

}

.card {
    margin-bottom: 30px;
}

.cards__inner {
    display: flex;
    justify-content: space-between;
}


/* =================================================================
   記事ページ & サイドバー
====================================================================*/

/* コンテンツとサイドバーのコンテナ */
.container {
    display: grid;
    grid-template-columns: 1fr;
    /* スマホでは1カラム（縦並び） */
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* PC表示 (900px以上) の場合に横並びにする */
@media (min-width: 900px) {
    .container {
        /* メインコンテンツを2、サイドバーを1の比率で分割 */
        grid-template-columns: 2fr 1fr;
    }
}

/* メインコンテンツエリア */
.main-content {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.single-post .post-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.single-post .post-meta {
    color: #777;
    margin-bottom: 30px;
}

.single-post .post-body h2,
.single-post .post-body h3 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.single-post .post-body p {
    margin-bottom: 20px;
}

/* サイドバー */
.sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    align-self: start;
    position: sticky;
    top: 80px;
}


.sidebar__widget {
    margin-bottom: 30px;
}

.sidebar__widget:last-child {
    margin-bottom: 0;
}

.sidebar__title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar__post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar__post-item {
    margin-bottom: 15px;
}

.sidebar__post-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s;
}

.sidebar__post-item a:hover {
    opacity: 0.7;
}

.sidebar__post-thumbnail {
    width: 80px;
    flex-shrink: 0;
}

.sidebar__post-thumbnail img {
    border-radius: 5px;
}

.sidebar__post-title {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* *******************************************************
contact
************************************************************/
.contact {
    margin-top: 200px;
}

@media screen and (max-width: 767px) {
    .contact {
        margin-top: 50px;
    }
}

.contact-form {
    width: 70%;
    background: white;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 767px) {
    .contact-form {
        width: 100%;
    }
}

.form-row {
    margin-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

.form-row:nth-child(6) {
    display: flex;
    line-height: 46px;
}

@media screen and (max-width: 767px) {
    .form-row:nth-child(6) {
        line-height: 30px;
    }
}

.form-label--must {
    position: relative;
}

.form-label--must::after {
    position: absolute;
    content: "必須";
    top: 50%;
    right: -64px;
    transform: translateY(-50%);
    background: #F30100;
    color: white;
    font-size: 14px;
    padding: 2px;
    border-radius: 5px 5px 5px 5px;
}

.form-label label {
    font-size: 24px;
    font-weight: bold;
}

@media screen and (max-width: 767px) {
    .form-label label {
        font-size: 16px;
    }
}

.form-input input {
    font-size: 24px;
    width: 100%;
    height: 60px;
    opacity: 0.5;
    border: 1px solid #000;
}

@media screen and (max-width: 767px) {
    .form-input input {
        height: 30px;
        font-size: 16px;
    }
}

.form-input textarea {
    font-size: 24px;
    width: 100%;
    height: 200px;
    opacity: 0.5;
    border: 1px solid #000;
}

@media screen and (max-width: 767px) {
    .form-input textarea {
        font-size: 16px;
        height: 100px;
    }
}

.form-row--check {
    line-height: 48px;
}

.form-row--check dd input {
    width: 48px;
    height: 48px;
}

@media screen and (max-width: 767px) {
    .form-row--check dd input {
        width: 24px;
        height: 24px;
    }
}

.form-row--check dt {
    margin-left: 20px;
    height: 48px;
}

@media screen and (max-width: 767px) {
    .form-row--check dt {
        height: 24px;
    }
}

.form-row--check dt label {
    font-weight: bold;
}

.send-btn {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    height: 60px;
}

.send-btn input[type=submit] {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: #12415A;
    line-height: 60px;
    border-radius: 10px 10px 10px 10px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    outline: none;
    overflow: hidden;
}

.send-btn input[type=submit]:hover {
    cursor: pointer;
}