@charset "UTF-8";

/* ---------------------------------------
   基本設定
--------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #fff;
    margin: 0;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

li {
    list-style: none;
}

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

/* 共通幅の枠 */
.w_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー基本設定 --- */
header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

#top .tagline {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4169e1;
}
/* ロゴ画像のサイズ調整 */
.header-logo {
    height: 70px; /* ヘッダーの高さ(70px)に合わせて調整 */
    width: auto;  /* 横幅は自動で比率を維持 */
    display: block;
    transition: opacity 0.3s;
}

.header-logo:hover {
    opacity: 0.8; /* ホバーした時に少し透けさせてリンクだと伝えやすくする */
}

/* スマホ時のロゴサイズ調整 */
@media (max-width: 900px) {
    .header-logo {
        height: 70px; /* スマホでは少し小さめに */
    }
    
    .header-container {
        justify-content: center; /* タイトル（ロゴ）を中央に */
    }
}

/* --- PCナビ --- */
.pc-nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.pc-nav ul li a {
    color: #4682b4;
    font-weight: bold;
    font-size: 15px;
}

/* --- ハンバーガーボタン（基本は隠す） --- */
#hamburger {
    display: none; /* PCでは出さない */
    width: 50px;
    height: 50px;
    position: relative;
    cursor: pointer;
    z-index: 110;
}

.icon span {
    position: absolute;
    left: 10px;
    width: 30px;
    height: 3px;
    background-color: #4169e1;
    border-radius: 4px;
    transition: all 0.4s;
}

.icon span:nth-of-type(1) { top: 15px; }
.icon span:nth-of-type(2) { top: 24px; }
.icon span:nth-of-type(3) { top: 33px; }

/* 閉じる時のアニメーション（×印） */
.icon.close span:nth-of-type(1) { transform: translateY(9px) rotate(45deg); }
.icon.close span:nth-of-type(2) { opacity: 0; }
.icon.close span:nth-of-type(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- スマホ専用メニュー --- */
.sp-nav {
    display: block;
    max-height: 0; /* 高さを0にして隠す */
    overflow: hidden;
    background-color: rgba(65, 105, 225, 0.98);
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 95;
    transition: max-height 0.4s ease-in-out;
}

.sp-nav.active {
    max-height: 500px; /* メニューが開いた時の最大高さ */
}

.sp-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-nav ul li a {
    display: block;
    padding: 20px;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* --- レスポンシブ切り替え (900px以下) --- */
@media (max-width: 900px) {
    .pc-nav {
        display: none; /* PC用の一覧メニューを消す */
    }

    #hamburger {
        display: block; /* ハンバーガーボタンを出す */
        position: absolute;
        right: 15px;
    }

    .header-container {
        justify-content: center; /* タイトルを中央寄せ */
    }
}

/* メインビジュアルの枠 */
.header_img {
    width: 100%;
    height: 450px; /* ここでお好みの高さを固定 */
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #eee; /* 画像が読み込まれるまでの背景色 */
}

/* 中身の画像の設定 */
.header_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* ★これが重要！枠いっぱいに画像を切り抜いてフィットさせます */
    object-position: center; /* 写真の真ん中を中心に合わせる */
    vertical-align: bottom; /* 下の謎の隙間を消す */
}

/* ---------------------------------------
   コンテンツ全体
--------------------------------------- */

/* 共通の見出し */
.sec_head {
    display: block;
    margin: 30px auto 30px auto;
    font-size: 28px;
    font-weight: bold;
    color: #4169e1;
    width: fit-content;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.sec_head::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #4169e1;
}

/* 共通のリード文 */
.lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 15px;
}

/* ---------------------------------------
   サービス紹介 (s_box)
--------------------------------------- */
.front_service {
    margin-bottom: 100px;
}

.s_box {
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.s_box li {
    flex: 1;
    background-color: #fff;
    border: 2px solid #4169e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: 0.3s ease;
}

.s_box li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(65, 105, 225, 0.1);
}

.icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.ttl {
    font-size: 18px;
    font-weight: bold;
    color: #4169e1;
    margin-bottom: 15px;
}

.descri {
    font-size: 14px;
    color: #555;
    text-align: left;
}

/* スマホ表示 (768px以下) */
@media (max-width: 768px) {
    .s_box {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    .s_box li {
        width: 100%;
        flex: none;
    }
    .lead {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* ---------------------------------------
   お知らせ (news_list)
--------------------------------------- */
.front-news {
    max-width: 800px;
    margin: 0 auto;
}

.news_list ul {
    padding: 0;
    margin-bottom: 30px;
    border-top: 1px solid #eee;
}

.news_list li {
    border-bottom: 1px solid #eee;
}

.news_list li a {
    display: flex;
    padding: 20px;
    color: #333;
}

.news_list li a:hover {
    background-color: #f9f9f9;
}

.news_list .date {
    width: 120px;
    color: #999;
    font-weight: bold;
}

.news_list .ttl {
    color: #333;
    font-weight: normal;
    margin-bottom: 0;
}

/* 一覧をみるボタン */
.btn_stn {
    text-align: center;
}

.btn_stn a {
    display: inline-block;
    background-color: #4169e1;
    color: #fff;
    padding: 12px 50px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn_stn a:hover {
    background-color: #3356c1; /* 修正済み */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

/* ---------------------------------------
   フッター
--------------------------------------- */
footer {
    background-color: #4169e1;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 80px;
}

footer .w_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

footer nav {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

footer nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

footer nav ul li a {
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
}

#copyright {
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

@media (max-width: 768px) {
    footer nav {
        justify-content: center;
    }
    footer nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* ---------------------------------------
   料金案内ページ
--------------------------------------- */
.price-page-custom table {
    border-collapse: collapse;
    margin: 40px auto;
    width: 100%;
    max-width: 800px;
    table-layout: fixed;
    border: 1px solid #bbb;
}

.price-page-custom table tr {
    background-color: #fff;
    border-bottom: 1px solid #bbb;
}

.price-page-custom tbody tr:nth-child(even) {
    background-color: #f4f7ff;
}

.price-page-custom table th,
.price-page-custom table td {
    padding: 1.2em;
    border-right: 1px solid #bbb;
}

.price-page-custom thead tr {
    background-color: #4169e1;
}

.price-page-custom thead th {
    color: #fff;
    font-size: 1rem;
}

.price-page-custom tbody th {
    font-size: 1rem;
    color: #4169e1;
    text-align: center;
}

.price-page-custom .txt {
    text-align: left;
}

.price-page-custom .price {
    text-align: right;
    font-weight: bold;
}

/* ---------------------------------------
   スマホ表示 (600px以下)
--------------------------------------- */
@media screen and (max-width: 600px) {
    /* 1. 表全体（一番外側）の線を消す */
    .price-page-custom table {
        border: none !important; 
        background-color: transparent !important;
        display: block !important;
    }

    /* 2. 各要素をブロック化（縦並びの準備） */
    .price-page-custom thead, 
    .price-page-custom tbody, 
    .price-page-custom th, 
    .price-page-custom td, 
    .price-page-custom tr { 
        display: block !important; 
    }

    /* 3. プランごとの「箱（カード）」の設定 */
    .price-page-custom table tr {
        margin-bottom: 2em !important; /* プランごとの隙間 */
        border: 1px solid #bbb !important; /* ★ここ！各プランの枠線は復活させる */
        background-color: #fff !important; /* 箱の中身は白く */
        border-radius: 8px; /* 少し角を丸くすると今風です */
        overflow: hidden;
    }

    .price-page-custom thead {
        display: none !important; /* PC用のヘッダーは消す */
    }

    /* 4. プラン名（青い見出し部分） */
    .price-page-custom tbody th {
        background-color: #4169e1 !important;
        color: #fff !important;
        text-align: left !important;
        padding: 12px 15px !important;
        border: none !important; /* プラン名の中の余計な線は消す */
    }

    /* 5. 内容と価格（白い部分） */
    .price-page-custom table td {
        text-align: right !important;
        position: relative !important;
        padding: 12px 15px 12px 50% !important;
        border-right: none !important;
        border-bottom: 1px solid #eee !important; /* 項目間の区切り線 */
    }

    .price-page-custom table td:last-child {
        border-bottom: none !important; /* 最後の「価格」の下の線は消す */
    }

    .price-page-custom table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        color: #4169e1;
    }
}

/* ---------------------------------------
   お問い合わせフォーム (Contact Form 7)
--------------------------------------- */
.wpcf7 .Form {
  margin: 40px auto !important;
  max-width: 720px !important;
}

.wpcf7-form-control-wrap {
  flex: 1;
}

.Form-Item {
  border-top: 1px solid #ddd !important;
  padding: 24px 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* 最後の入力項目の下にも線を引く */
.Form-Item:nth-last-of-type(2) {
  border-bottom: 1px solid #ddd !important;
}

.Form-Item-Label {
  width: 100% !important;
  max-width: 200px !important;
  font-weight: bold !important;
  margin: 0 !important;
}

.Form-Item-Label-Required {
  background: #4169e1 !important;
  color: #fff !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  margin-right: 10px !important;
  font-size: 12px !important;
}

/* 入力フィールドの基本設定 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  background: #f9fbff !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  margin-left: 40px !important;
  padding: 12px !important;
  width: 100% !important;
  max-width: 400px !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
}

/* フォーカス時の演出追加 */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #4169e1 !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: 0 0 8px rgba(65, 105, 225, 0.2) !important;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  background: #4169e1 !important;
  color: #fff !important;
  border: none !important;
  padding: 18px 0 !important;
  width: 280px !important;
  border-radius: 50px !important;
  font-weight: bold !important;
  font-size: 18px !important;
  cursor: pointer !important;
  display: block !important;
  margin: 40px auto !important;
  appearance: none !important;
  transition: all 0.3s ease !important;
}

.wpcf7 input[type="submit"]:hover {
  background: #3356c1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* スマホ表示 */
@media screen and (max-width: 480px) {
  .Form-Item {
    flex-wrap: wrap !important;
  }
  .Form-Item-Label {
    max-width: 100% !important;
    margin-bottom: 10px !important;
  }
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
}

/* 不要な要素の非表示設定 */
.wpcf7 .ajax-loader {
    display: none !important;
}

.wpcf7 fieldset.hidden-fields-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 強制的に余白をゼロにする */
#wrapc {
    padding: 0 !important;
}

/* ポートフォリオのグリッド設定 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 横に3つ並べる */
    gap: 30px; /* 画像同士の間隔 */
    margin-top: 40px;
}

.portfolio-item {
    background: #fff;
    border: 1px solid #eee;
    transition: 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 画像の比率を保ったまま切り抜き */
}

.portfolio-info {
    padding: 15px;
}

.portfolio-info h3 {
    font-size: 16px;
    color: #4169e1;
    margin: 0;
}

/* スマホ表示 */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* 縦に1つずつ */
    }
}