@charset "UTF-8";
/* tablet.css (適用範囲: max-width: 1024px) */

/* ========================================= */
/* サイト共通設定 */
/* ========================================= */
body {
    min-width: unset; /* PCの固定幅設定を解除 */
    overflow-x: hidden;
}
.container {
    max-width: 100%; 
    padding: 0 20px;
}
h2 {
    font-size: 32px;
    padding: 80px 0 50px 0;
    width: 10rem;
}
h2:after {
content: "";
display: block;
width: 100%;
height: 5px;
background-color: #4a74a5;
position: absolute;
left: 0;
bottom: 40px;
}
p {
    font-size: 16px;
}
.catch-copy1{font-size: 36px; margin-bottom: 10px;}
.catch-copy2{font-size: 18px;}

.sub-title{
font-size: 14px;
width: 100%;
height: auto;
text-align: center;
margin-top: -40px;
padding-bottom: 60px;
}

/* ========================================= */
/*  ヘッダー/ナビゲーションの切り替え */
/* ========================================= */
.global-nav {
    height: 60px;
    margin: 0;
    border-radius: 0;
    background-color: rgba(255,255,255,0.95); /* 背景をほぼ不透明に */
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0 20px;
    width: 100%;
    left: 0;
    right: 0;
}

/* 1. PC用の ul ナビゲーションを非表示にする */
.global-nav ul { 
    display: none; /* 💡 元の ul セレクタをここで非表示に */
}

/* 2. ハンバーガーボタンを表示・スタイリング */
.hamburger-btn {
    display: block !important; /* style.css の display: none; を上書き */
    position: relative;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}
.hamburger-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 2px;
    transition: 0.3s;
}
.hamburger-btn span:nth-child(1) { top: 7px; }
.hamburger-btn span:nth-child(2) { top: 16px; }
.hamburger-btn span:nth-child(3) { top: 25px; }

/* 3. モバイルメニューコンテナのスタイリング（通常は非表示） */
.mobile-menu {
    display: block !important; /* style.css の display: none; を上書き */
    position: fixed;
    top: 0;
    right: -100%; /* 初期位置: 画面外 */
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9;
    transition: right 0.4s ease-in-out;
    padding-top: 80px; 
    text-align: center;
    overflow-y: auto; 
}

/* 4. モバイルメニューが開いたとき (JavaScriptでこのクラスを付与) */
.mobile-menu.is-open {
    right: 0; 
}

/* 5. モバイルメニュー内のリストスタイリング (mobile-nav-list クラスを使用) */
.mobile-nav-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-list li a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}
.mobile-nav-list li a:hover {
    background-color: #f5f5f5;
    color: #4a74a5;
}

/* 6. ハンバーガーアニメーション (is-open時) */
.hamburger-btn.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* Topics (Works)セクション */
#topics-section .container {
    flex-direction: column;
    margin: 50px auto;
    padding: 0 20px;
}
.topics-head {
    min-width: 100%;
    text-align: center;
    margin-bottom: 40px;
}
.topics-head h2 {
    font-size: 36px;
    border-bottom: none;
}
.topics-head h2:after{ 
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background-color: #4a74a5;
    position: absolute;
    left: 0;
    bottom: -10px;
}
.topics-head p {
    margin-bottom: 40px;
}
.topics-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    padding-bottom: 20px;
    gap: 30px;
}
.card-item a {
    width: 200px;
    height: 280px;
}
.card-item time{
 
 }

/* About us セクション */
#about-section .container {
    flex-direction: column;
    padding: 80px 20px;
}
#about-section h2.about_btn {
    width: 100%;
    margin-bottom: 40px;
}
.about_txt {
    width: 100%;
    text-align: center;
}
#about-section h3 {
    font-size: 30px;
}
#about-section::before,
#about-section::after {
    display: none; 
}

/* Service セクション */
#service-section h3 {
    font-size: 28px;
    margin-bottom: 40px;
}
#service-section h3::after {
    font-size: 14px;
    top: 100%;
    line-height: 1.2rem;
}
#service-section .service-title-txt {
    padding: 0;
    margin-bottom: 20px;
}
.service-card {
    flex-direction: column;
    gap: 20px;
}
.service-card a {
    width: 100%;
    height: 200px;
    margin: 0;
}
.service-card-list {
    flex-direction: row;
    align-items: center;
    padding: 20px;
}
.service-card__h-img {
    width: 50%;
    text-align: left;
    margin-right: 20px;
}
.service-card__h-img img {
    width: 80px;
    margin: 0;
}
.service-card__h-img h4 {
    margin-top: 10px;
    font-size: 16px;
}
.service-card__txt {
    opacity: 1; 
    position: static;
    height: auto;
    padding: 0;
    width: 50%;
    text-align: left;
    background-color: transparent;
}
.service-card__txt p {
    font-size: 14px;
}
.service-card-list:hover .service-card__h-img,
.service-card-list:hover .service-card__txt {
    opacity: 1;
}
.service-card-list::after,
.service-card-list:hover::after {
    opacity: 0;
    transform: none;
}


/* Works セクション */
.work-card {
    flex-direction: column;
    gap: 20px;
    text-align: left;
}
.work-image-box {
    width: 100%;
    height: 340px;
}
.work-text-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}
.work-title {
    font-size: 32px;
    margin-bottom: 20px;
}
.work-desc{
    padding: 10px;
}
.work-actions {
    position: static;
    align-items: center;
    display: flex;
    flex-direction: column;
}

/* Contact セクション */
.contact-card {
    flex-direction: column-reverse;
    padding: 30px 20px;
    gap: 30px;
}
.contact-card__img {
    width: 80%;
    max-width: 300px;
}
.contact-card__txt {
    width: 100%;
    text-align: center;
}
.contact-card__txt h3 {
    font-size: 24px;
    margin-bottom: 20px;
}
.contact-card__txt p {
    margin-bottom: 40px;
}
.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-btn * {
    width: 90%;
    max-width: 300px;
    margin: 10px 0;
}


/* フッター */
footer{
    margin-top: 60px;
}
.footer-inner {
    flex-direction: column;
    align-items: flex-start;
    margin: 40px auto;
    padding: 0 20px;
}
.footer-left {
    width: 100%;
    align-items: flex-start;
    margin-bottom: 40px;
}
.footer-left img {
    margin: 0 0 10px 0;
}
footer table {
    margin: 10px 0;
}
.footer-nav {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.nav-list {
    margin-right: 20px;
}

/* ========================================= */
/* 767px以下 (スマホ向け微調整) */
/* ========================================= */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    .scroll_down {
        left: 15px;
    }
    button {
        width: 120px;
        height: 60px;
    }
    button i {
        font-size: 24px;
        top: 10px;
    }
    button p {
        font-size: 12px;
        bottom: 10px;
    }
    .fixed-contact-card {
        right: 15px;
    }
    .fixed-contact-card.is-offset {
        bottom: 80px; 
    }
    
    /* Serviceセクションの調整 */
    .service-card-list {
        flex-direction: column; 
        height: auto;
    }
    .service-card__h-img,
    .service-card__txt {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    .service-card__h-img {
        padding-top: 10px;
    }
    .service-card__txt {
        padding: 10px 15px 15px;
        border-top: 1px dashed #777;
    }
    .service-card__h-img button {
        margin-bottom: 10px;
    }
}