/*
Theme Name: 026HP Theme
Theme URI: https://026.inc
Author: 026.inc
Author URI: https://026.inc
Description: 026.incのコーポレートサイト用テーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 026hp-theme
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    background: #F4F3EF;
    color: #333333;
}

main {
    position: relative;
    z-index: 1;
}

/* ヘッダースタイル */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(244, 243, 239, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}

.logo a {
    text-decoration: none;
    color: #333;
    font-family: Montserrat;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    height: 40px;
    width: auto;
    vertical-align: middle;
    background: transparent;
}

.nav-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #007bff;
}

/* キービジュアルスタイル */
.keyvisual {
    width: 100%;
    height: 90vh;
    margin-top: 80px;
    /* overflow: hidden; */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 空のセクション */
.empty-section {
    width: 100%;
    height: 1200px;
    background: transparent;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInScroll 0.5s ease-in-out 7s forwards;
    z-index: 10;
}

.scroll-arrow {
    font-size: 24px;
    color: #333;
    animation: bounce 2s infinite 6.5s;
}

.scroll-text {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.1em;
}

@keyframes fadeInScroll {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 767px) {
    .keyvisual {
        margin-top: 0;
    }
    
    .keyvisual-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .scroll-indicator {
        bottom: 20%;
    }

    .scroll-arrow {
        font-size: 20px;
    }

    .scroll-text {
        font-size: 12px;
    }

    .philosophy-container,
    .whyit-container,
    .works-container,
    .service-container,
    .blogs-container,
    .about-container,
    .contact-container {
        max-width: 100%;
        width: 100%;
        padding: 0 16px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    .section {
        padding: 40px 0;
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
        text-align: center;
        width: 100%;
    }

    .philosophy-keymessage-jp {
        font-size: 20px;
    }

    .philosophy-keymessage-en {
        font-size: 16px;
    }

    .philosophy-flex {
        flex-direction: column;
        align-items: center;
    }

    .philosophy-image {
        position: relative;
        transform: none;
        top: 0;
        margin-bottom: 40px;
    }

    .philosophy-item {
        margin-bottom: 30px;
    }

    .philosophy-item-title {
        font-size: 24px;
    }

    .philosophy-item-desc {
        font-size: 16px;
    }

    .whyit-lead {
        font-size: 20px;
    }

    .whyit-text {
        font-size: 16px;
    }

    .works-carousel-container {
        margin: 0;
        width: 100%;
    }

    .works-item {
        width: 280px;
        height: 360px;
    }

    .service-list-main {
        flex-direction: column;
        gap: 40px;
    }

    .service-item-main {
        width: 100%;
    }

    .service-item-main-image {
        height: 240px;
    }

    .service-item-main-title {
        font-size: 24px;
    }

    .service-item-main-description {
        font-size: 16px;
    }

    .blogs-list {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        position: relative;
        transform: none;
        width: 240px;
        margin: 0 auto 40px;
    }

    .about-details {
        margin-left: 0;
    }

    .about-details dl {
        font-size: 16px;
    }

    .contact-message {
        font-size: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }

    .submit-button {
        width: 100%;
        max-width: 280px;
    }

    .header-container {
        position: relative;
        
    }

    .hamburger {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }
    /* .nav {
        right: -100%;
    } */
}

/* セクション共通スタイル */
.section {
    width: 100%;
    padding: 120px 0;
    margin-bottom: 80px;
    opacity: 1;
    transform: none;
    transition: none;
}

.section-title {
    position: relative;
    overflow: hidden;
    color: #333;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    display: inline-block;
    margin-bottom: 80px;
}

/* section-title アニメーション用 */
.section-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s, transform 0.5s;
  }
  
  .section-title.animated span {
    opacity: 1;
    transform: translateY(0);
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 3px;
    background-color: #333;
    transition: transform 0.7s cubic-bezier(.77,0,.18,1);
  }
  
  .section-title.animated::after {
    transform: translateX(-50%) scaleX(1);
  }
  
/* Philosophyセクションスタイル */

.philosophy-container {
    max-width: 768px;
    width: 100%;
    margin: 160px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.philosophy-headblock {
    width: 100%;
    margin-bottom: 80px;
}

.section-title.is-rotated {
    transform: rotate(-5deg);
}

.title-decoration {
    position: absolute;
    left: -100%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: left 0.8s ease-out, opacity 0.8s ease-out;
    width: 200%;
    height: auto;
}

.section-title.visible .title-decoration {
    left: 0;
    opacity: 1;
}

.philosophy-keymessage-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    align-self: stretch;
    margin-bottom: 80px !important;
}

.philosophy-keymessage-jp {
    color: #666;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.philosophy-keymessage-en {
    color: #666;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.philosophy-flexblock {
    width: 100%;
}

.philosophy-flex {
    position: relative;
    width: 100%;
    max-width: 768px;
    height: 385px;
    margin: 80px auto 0;
}

.philosophy-image {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.philosophy-image img {
    width: 385px;
    height: 385px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    display: block;
    opacity: 0.05;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.philosophy-list {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 480px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: flex-start;
}

.philosophy-item {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.philosophy-number {
    color: #888;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    /* min-width: 60px; */
    text-align: right;
}

.philosophy-body {
    flex: 1;
}

.philosophy-item-title {
    color: #333;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 12px;
}

.philosophy-item-desc {
    color: #333;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
}

.whyit-container {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.whyit-keymessage-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    align-self: stretch;
    margin-bottom: 40px;
}

.whyit-keymessage-jp {
    color: #666;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.whyit-keymessage-en {
    color: #666;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.whyit-lead {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.whyit-text {
    color: #333;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 2;
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
}

.whyit-point {
    color: #bfa14a;
    font-weight: 700;
}

.whyit-content {
    position: relative;
    width: 100%;
    min-height: 220px;
}

.whyit-bgmark {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.whyit-bgmark img {
    width: 385px;
    height: 385px;
    aspect-ratio: 1/1;
    transform: rotate(5deg);
    opacity: 0.08;
    display: block;
    transform-origin: bottom center;
    animation: swing 3s ease-in-out infinite;
}

@keyframes swing {
    0% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(5deg);
    }
}

.fu-char {
    position: relative;
    display: inline-block; /* span要素をinline-blockにしてwidth/heightが効くように */
}

.fu-char::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #F04A51;
    border-radius: 50%;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.whyit-emphasize-text {
    color: #F04A51;
}

/* Worksセクションスタイル */
.works-container {
    max-width: 768px; /* デザインに合わせたコンテナ幅 */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative; /* ボタンの配置基準として追加 */
}

.works .section-title {
    margin-bottom: 80px; /* セクションタイトル下の余白 */
}

.works-carousel-container {
    position: relative;
    width: 100%;
    max-width: 742px;
    margin: 0 auto;
    overflow: hidden;
    margin-bottom: 60px;
}

.works-list-wrapper {
    display: flex;
    gap: 40px;
    width: 100%;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
}

.works-item {
    width: 350px;
    height: 451px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    display: block;
    box-sizing: border-box;
    flex: 0 0 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.works-item-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.works-item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.works-item-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    color: #fff;
}

.works-item-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.works-item-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.works-button-wrapper {
    width: 100%;
    text-align: center;
}

.works-button {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid #333;
    border-radius: 40px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.works-button:hover {
    background-color: #333;
    color: #fff;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: #f5f5f5;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Serviceセクションスタイル */
.service-container {
    max-width: 768px; /* コンテナ幅を768pxに変更 */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service .section-title {
    margin-bottom: 80px; /* セクションタイトル下の余白 */
}

.service-list-main {
    display: flex;
    justify-content: flex-start; /* 左寄せでgapで間隔を制御 */
    gap: 20px;
    margin-bottom: 120px;
}

.service-item-main {
    width: calc(33.333% - 13px); /* 3つのアイテムが横並びに収まる幅（gap: 20px対応） */
    background: none; /* 白い背景を削除 */
    border-radius: 0; /* 角丸を削除 */
    box-shadow: none; /* 影を削除 */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-items: flex-start;
    padding: 0; /* カード自体のパディングを削除 */
    text-align: left; /* カード内のテキストを左揃えに */
}

.service-item-main-image {
    width: 100%;
    height: 340px; /* 画像の高さを調整 */
    background-size: cover;
    background-position: center center; /* 背景画像を中央に配置 */
    background-repeat: no-repeat; /* 背景画像を繰り返さない */
    margin-bottom: 16px; /* 画像の下に余白 */
    border-radius: 0; /* 画像の角丸を削除 */
    position: relative; /* HOTラベルの位置決めのため */
}

.hot-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
}

.service-item-main-image img {
    /* imgタグはHTMLから削除されるため、このスタイルは不要になります */
    display: none;
}

.service-item-main-title {
    color: #333;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 12px;
    padding: 0; /* 左右のパディングを削除 */
    text-align: left;
}

.service-item-main-description {
    color: #333;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
    padding: 0; /* 左右のパディングを削除 */
    text-align: left;
}

.service-sub-heading {
    width: 100%;
    text-align: center; /* 中央寄せを維持 */
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px; /* サブ見出しとロゴの間の余白 */
}

.service-software-logos {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin-left: 40px;
}

.service-software-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-software-logos img:hover {
    opacity: 1;
}

/* スライダーコンテナのスタイル */
.service-software-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.service-software-list-wrapper {
    display: flex;
    width: 1600px;
    animation: slide 30s linear infinite;
}

.service-software-logos {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
    min-width: 800px;
}

.service-software-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-800px);
    }
}

/* Newsセクションスタイル */
.blogs-container {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blogs .section-title {
    margin-bottom: 80px;
}

.blogs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0 0 80px 0;
    width: 100%;
    justify-items: stretch;
}

@media (max-width: 991px) {
    .blogs-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 600px) {
    .blogs-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.blogs-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 0;
    width: 100%;
    min-height: 320px;
}

.blogs-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.blogs-item-image {
    width: 100%;
    aspect-ratio: 1/1;
    min-height: 0;
    background: #f4f4f4;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blogs-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blogs-item-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

.blogs-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.blogs-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.blogs-category {
    font-size: 14px;
    color: #007bff;
    background-color: #e6f2ff;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.blogs-tags {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.blogs-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.blogs-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    margin-top: 8px;
    display: block;
}

.all-blogs-button-container {
    width: 100%;
    text-align: center;
}

.all-blogs-button {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid #333;
    border-radius: 40px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.all-blogs-button:hover {
    background-color: #333;
    color: #fff;
}

/* Aboutセクションスタイル */
.about-container {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about .section-title {
    margin-bottom: 80px;
}

.about-content {
    width: 100%;
    display: flex; /* PC: 横並び */
    justify-content: flex-start; /* PC: アイコンを左に */
    align-items: center; /* PC: 垂直方向中央揃え */
    /* gap: 60px; */ /* margin-leftで重なりを調整するためコメントアウト */
    position: relative; /* about-imageの絶対配置の基準 */
}

.about-image {
    position: absolute; /* PC: 絶対配置 */
    left: 0; /* PC: アイコンを左に配置 */
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    width: 320px; /* アイコンのサイズを調整 */
    height: auto;
    opacity: 0.15;
    display: block;
}

.about-image img {
    width: 100%; /* 親要素の幅に合わせる */
    height: auto;
}

.about-details {
    flex-grow: 1; /* 残りのスペースを埋めるように変更 */
    /* width: 500px; */ /* 幅の指定を削除 */
    background: #fff; /* PC: 背景を白に設定 */
    padding: 60px; /* PC: パディングを追加 */
    border-radius: 24px; /* PC: 角丸を追加 */
    box-shadow: 0 4px 24px rgba(0,0,0,0.08); /* PC: 影を追加 */
    margin-left: 200px; /* PC: アイコンと重なるように右にずらす (アイコン幅320px - 重なり120px) */
    position: relative; /* z-indexのために必要 */
    z-index: 1; /* PC: 画像より手前に表示 */
}

.about-details dl {
    display: grid;
    grid-template-columns: max-content 1fr; /* 項目名が内容に応じて幅を調整 */
    font-size: 16px;
}

.about-details dt,
.about-details dd {
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #cccccc;
}

.about-details dt {
    color: #333;
    font-weight: 500;
    text-align: left;
    padding-right: 40px;
}

.about-details dd {
    color: #333;
    font-weight: 400;
}

/* 最後の行のdtとddからボーダーを削除 */
.about-details dl dt:nth-last-child(2),
.about-details dl dd:last-of-type {
    border-bottom: none;
}

/* Footerスタイル */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center; /* 中央揃えに設定 */
    position: relative;
    z-index: 1;
}

.contact {
    background: #333;
    position: relative;
    color: #fff;
    padding: 120px 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.95);
    z-index: 1;
}

.contact .section-title {
    color: #fff;
}

.contact-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.contact-message {
    color: #fff;
    text-align: left;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 2;
    margin-bottom: 0;
    flex: 1;
    max-width: 460px;
}

.contact-message br {
    display: block !important;
}

.contact-button-wrapper {
    flex-shrink: 0;
}

.contact-button-wrapper .submit-button {
    display: inline-block;
    width: auto;
    min-width: 280px;
    padding: 16px 40px;
    border: 2px solid #fff;
    border-radius: 40px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.contact-button-wrapper .submit-button:hover {
    background-color: #fff;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.contact-container {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.submit-button {
    display: inline-block;
    width: 240px; /* ボタンの幅を固定 */
    padding: 16px 40px;
    border: 1px solid #333;
    border-radius: 40px;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    align-self: center; /* ボタンを中央揃え */
    margin-top: 36px; /* フォームとボタンの間の余白 */
}

.submit-button:hover {
    background-color: #333;
    color: #fff;
}

/* レスポンシブ対応 */
@media (min-width: 992px) {
    .header-container,
    .philosophy-container,
    .whyit-container,
    .works-container,
    .service-container,
    .blogs-container,
    .about-container,
    .contact-container {
        max-width: 1000px; /* PCでの推奨幅 */
    }

    /* Worksセクションのカルーセル表示調整 */
    .works-carousel-container {
        max-width: 942px;
        padding: 0 48px; /* PC表示時はパディングを大きく */
    }

    .works-list-wrapper {
        gap: 60px;
        padding: 0 30px; /* PC表示時はパディングを大きく */
    }

    .works-item {
        width: 440px;
        flex: 0 0 440px;
        max-width: 440px;
    }

    /* Serviceセクションのメインリスト表示調整 */
    .service-list-main {
        gap: 20px;
    }

    .service-item-main {
        width: calc(50% - 40px);
    }

    .service-item-main-image {
        height: 400px;
    }

    /* Contactセクションのフォームボタンの位置調整 */
    .submit-button {
        margin-left: 0;
        align-self: center;
    }
}

/* モバイル向けレスポンシブ対応 */
@media (max-width: 767px) {

    .header-container {
        max-width: 100%;
        padding: 1rem 16px;
    }

    .philosophy-list {
        right: 0;
        top: 80%;
        transform: translateY(-50%);
        z-index: 2;
        width: 300px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .philosophy-item-title {
        font-size: 24px;
    }

    .philosophy-item-desc {
        font-size: 16px;
    }

    /* Aboutセクションのコンテンツ表示調整 */
    .about-content {
        position: relative; /* 位置決めの基準として追加 */
        gap: 0; /* 重ねるためギャップを削除 */
        justify-content: center; /* 中央寄せ */
        align-items: center; /* 中央寄せ */
        min-height: 400px; /* 重なる要素を囲むための最小高さを確保 */
    }

    .about-image {
        position: absolute; /* 絶対位置指定 */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* 中央に配置 */
        width: 300px; /* サイズ調整 */
        opacity: 0.1;
        z-index: 0; /* 背景に配置 */
    }

    .about-image img {
        width: 100%; /* 親要素の幅に合わせる */
        height: auto;
    }

    .about-details {
        width: 100%; /* 幅を100%にする */
        max-width: 500px; /* モバイルでの最大幅を設定 */
        padding: 40px 20px; /* パディングを調整 */
        position: absolute; /* アイコンと同じように絶対配置 */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* 中央に配置 */
        z-index: 1; /* アイコンより手前に表示 */
        background: transparent; /* 背景を透明に設定 */
        border-radius: 0; /* 角丸を削除 */
        box-shadow: none; /* 影を削除 */
        margin-left: 0; /* モバイルではマージンをリセット */
    }

    .about-details dl {
        grid-template-columns: 100px 1fr; /* dtの幅を調整 */
    }

    /* Contactセクションのメッセージ改行 */
    .contact-message br {
        display: none;
    }

    /* Serviceセクション */
    .service-list-main {
        flex-direction: column;
        gap: 40px;
    }

    .service-item-main {
        width: 100%;
    }

    /* Newsセクション */
    .blogs-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Worksセクションのカルーセルボタン位置を調整 */
    .carousel-button.prev {
        left: 0;
    }

    .carousel-button.next {
        right: 0;
    }

    .contact-flex-container {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }

    .contact-message {
        text-align: left;
        max-width: 100%;
        font-size: 15px;
        line-height: 1.8;
        padding: 0 20px;
    }

    .contact-button-wrapper {
        width: 100%;
        padding: 0 20px;
        text-align: center;
    }
}

.back-button {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 80px;
    border-bottom: none;
}

.blogs-item a {
    text-decoration: none;
    color: inherit;
}

/* ハンバーガーメニュー用スタイル */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70vw;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 8px rgba(0,0,0,0.08);
        transition: right 0.3s;
        z-index: 1500;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        padding-top: 80px;
    }
    .nav.active {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        gap: 32px;
        width: 100%;
        align-items: flex-start;
        padding-left: 32px;
    }
}

.blog-detail-container {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
@media (min-width: 992px) {
    .blog-detail-container {
        max-width: 1000px;
    }
}

.blog-detail-content {
    margin-top: 40px;
    margin-bottom: 40px;
    color: #333;
    font-size: 16px;
    line-height: 2;
    word-break: break-word;
}
.blog-detail-content h1,
.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4,
.blog-detail-content h5,
.blog-detail-content h6 {
    color: #222;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
    line-height: 1.3;
}
.blog-detail-content h1 { font-size: 2em; }
.blog-detail-content h2 { font-size: 1.6em; border-left: 4px solid #F04A51; padding-left: 12px; }
.blog-detail-content h3 { font-size: 1.3em; }
.blog-detail-content h4 { font-size: 1.1em; }
.blog-detail-content p {
    margin-bottom: 1.5em;
}
.blog-detail-content ul,
.blog-detail-content ol {
    margin: 1.5em 0 1.5em 2em;
    padding: 0;
}
.blog-detail-content li {
    margin-bottom: 0.5em;
}
.blog-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.blog-detail-content blockquote {
    border-left: 4px solid #F04A51;
    background: #f9f9f9;
    color: #666;
    margin: 2em 0;
    padding: 1em 1.5em;
    border-radius: 8px;
    font-style: italic;
}
.blog-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: #fafafa;
}
.blog-detail-content th,
.blog-detail-content td {
    border: 1px solid #e0e0e0;
    padding: 0.7em 1em;
    text-align: left;
}
.blog-detail-content th {
    background: #f0f0f0;
    font-weight: 700;
}
.blog-detail-content pre {
    background: #222;
    color: #fff;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
    font-size: 15px;
}
.blog-detail-content code {
    background: #f4f4f4;
    color: #d6336c;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 15px;
}
@media (max-width: 767px) {
    .blog-detail-content {
        padding: 24px;
        font-size: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.blog-detail-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
    line-height: 1.2;
}
.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}
.blog-detail-date {
    font-size: 15px;
    color: #888;
    letter-spacing: 0.05em;
}
.blog-detail-category {
    display: flex;
    gap: 8px;
}
.blog-detail-category a,
.blog-detail-tag {
    display: inline-block;
    background: #f4f4f4;
    color: #F04A51;
    font-size: 14px;
    font-weight: 600;
    border-radius: 16px;
    padding: 4px 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-right: 4px;
}
.blog-detail-category a:hover {
    background: #F04A51;
    color: #fff;
}
@media (max-width: 767px) {
    .blog-detail-title {
        font-size: 1.5em;
        margin-bottom: 12px;
    }
    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
  .blog-detail-container {
    max-width: 100%;
    /* padding: 0 8px; */
  }
  .blog-detail-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    word-break: break-word;
  }
  .blog-detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
  }
  .blog-detail-content {
    /* padding: 16px 4px; */
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .blog-detail-eyecatch img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
}

@media (max-width: 991px) {
  .blog-detail-container {
    padding: 24px !important;
  }
  .blog-detail-eyecatch {
    width: 100%;
  }
  .blog-detail-eyecatch img {
    width: 100%;
    display: block;
    box-sizing: border-box;
  }
  .blog-detail-content {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 15px;
  }
}

@media (max-width: 767px) {
    .blogs-item-image {
        aspect-ratio: 2/1; /* スマホ表示では高さを半分に */
    }
    
    .blog-detail-eyecatch {
        aspect-ratio: 2/1; /* 詳細画面のアイキャッチ画像も高さを半分に */
    }
    
    .blog-detail-eyecatch img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
}

/* 固定ページ用スタイル */
.page-container {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .page-container {
        max-width: 1000px;
    }
}

.page-content {
    width: 100%;
    color: #333;
    font-size: 16px;
    line-height: 2;
    word-break: break-word;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #222;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.page-content h1 { 
    font-size: 2em; 
}

.page-content h2 { 
    font-size: 1.6em; 
    border-left: 4px solid #F04A51; 
    padding-left: 12px; 
}

.page-content h3 { 
    font-size: 1.3em; 
}

.page-content h4 { 
    font-size: 1.1em; 
}

.page-content p {
    margin-bottom: 1.5em;
}

.page-content ul,
.page-content ol {
    margin: 1.5em 0 1.5em 2em;
    padding: 0;
}

.page-content li {
    margin-bottom: 0.5em;
}

.page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.page-content a {
    color: #F04A51;
    text-decoration: underline;
}

.page-content a:hover {
    color: #d03a40;
}

.page-content blockquote {
    border-left: 4px solid #F04A51;
    background: #f9f9f9;
    color: #666;
    margin: 2em 0;
    padding: 1em 1.5em;
    border-radius: 8px;
    font-style: italic;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: #fafafa;
}

.page-content th,
.page-content td {
    border: 1px solid #e0e0e0;
    padding: 0.7em 1em;
    text-align: left;
}

.page-content th {
    background: #f0f0f0;
    font-weight: 700;
}

.page-content pre {
    background: #222;
    color: #fff;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
    font-size: 15px;
}

.page-content code {
    background: #f4f4f4;
    color: #d6336c;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 15px;
}

@media (max-width: 767px) {
    .page-container {
        max-width: 100%;
    }
    
    .page-content {
        /* padding: 24px; */
        font-size: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .page-content h1 {
        font-size: 1.5em;
        margin-bottom: 12px;
    }
    
    .page-content h2 {
        font-size: 1.3em;
    }
    
    .page-content h3 {
        font-size: 1.1em;
    }
    
    .page-content h4 {
        font-size: 1em;
    }
}

@media (max-width: 991px) {
    .page-container {
        padding: 24px !important;
    }
}

.category-filter {
    margin-bottom: 20px;
    width: 100%;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

.category-item a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-item a:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.category-item.is-active a {
    background-color: #333;
    color: #fff;
    border-color: #333;
    font-weight: 600;
}

.post-count {
    margin-bottom: 40px;
    font-size: 14px;
    color: #666;
    text-align: right;
    width: 100%;
}

/* 背景アニメーション用スタイル */
.background-animation-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(191, 161, 74, 0.1); /* ゴールド系の薄い色 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    /* transition: transform 0.1s linear; */
    will-change: transform;
}

.circle.c1 {
    width: 50vw;
    height: 50vw;
    /* max-width: 600px;
    max-height: 600px; */
}

.circle.c2 {
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
}

.circle.c3 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: #F4F3EF;
}

/* スマホでの背景円アニメーション調整 */
@media (max-width: 767px) {
    /* 中央配置のため個別の位置調整は削除 */
}

