body {
    margin: 0;
    background-color: #cccccc;
    color: #000;
    font-family: 'Shippori Mincho', serif;
    line-height: 1.8;
}



/* ========== HEADER ========== */
.header {
    background: #d8d2e8;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ccc;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: auto;
}

.site {
    display: flex;
    align-items: center;
}

.kofuku {
    width: 90px;
    height: 90px;
    margin-right: 10px;
}

.catch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 90px;
}

.catch h1,
.catch h2 {
    line-height: 1;
    margin: 0;
    padding: 0;
}

.catch h1 {
    font-size: 18px;
    color: #42119e;
    text-align: justify;
    margin: 0;
    display: block;
    width: 100%;
    position: relative;
}

.catch h1::after {
    content: "";
    display: inline-block;
    width: 100%;
}

.catch h2 {
    font-size: 38px;
    margin: 0;
}

/* ナビゲーション */
.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav li {
    margin-left: 20px;
}

/* 共通リンクスタイル */
.nav a {
    text-decoration: none;
    color: #42119e;
    font-weight: bold;
    font-size: 1.3rem;
    margin: 28px;
    display: inline-flex;
    align-items: center;
}

/* お問い合わせボタン */
.nav .contact-link {
    background-color: #ececec;
    color: #000000;
    padding: 6px 18px;
    margin: 0;
    margin-bottom:5px ;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 270px;
    justify-content: center;
    text-align: center;
    font-size: 16px;
}

.nav .contact-link:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

/* 電話番号ボタン */
.phone-below {
    margin-top: 6px;
    text-align: center;
}

.phone-below .phone-link {
    background-color: #ececec;
    color: #000000;
    padding: 6px 18px;
    margin: 0;
    margin-bottom:5px ;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 270px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}

.phone-below .phone-link:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

/* 共通のアイコン色 */
.nav .contact-link i,
.phone-below .phone-link i {
    margin-right: 8px;
    color: #5bc8ac;
    font-size: 1.3em;
    vertical-align: middle;
}


/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1,
.hero h2 {
    display: block;
    position: relative;
    z-index: 10;
    background: rgba(212, 212, 212, 0.6);
    padding: 1rem 2rem;
    margin: 48px 0;
    color: #3b2461;
    font-weight: normal;
}

.hero h1 {
    font-size: 48px;
    font-family: 'ＭＳ 明朝', serif;
    font-weight: bold;
}

.hero h2 {
    font-size: 34px;
    font-family: YuGothic, sans-serif;
    font-weight: bold;
}

.hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fade 15s infinite;
    filter: brightness(1.5) sepia(0.1) contrast(0.3);
}

.hero .slide:nth-child(1) { animation-delay: 0s; }
.hero .slide:nth-child(2) { animation-delay: 2.5s; }
.hero .slide:nth-child(3) { animation-delay: 5s; }
.hero .slide:nth-child(4) { animation-delay: 7.5s; }
.hero .slide:nth-child(5) { animation-delay: 10s; }
.hero .slide:nth-child(6) { animation-delay: 12.5s; }

@keyframes fade {
    0%, 45%, 100% { opacity: 0; }
    15%, 35% { opacity: 1; }
}

/* ========== SERVICE ========== */
#omoi {
    max-width: 1600px;
    margin: 30px auto;
    padding: 0 20px;
    position: relative;
    padding-top: 120px;  /* 追加 */
    padding-bottom: 60px;
    margin-top: -120px;  /* 追加 */
    
}

.omoi-item {
    display: flex;
    flex-wrap: wrap;
    margin: 80px 0 80px 0;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;

}

.omoi-left,
.omoi-right {
    flex: 1;
    padding: 10px;
    margin: 10px;
    max-width: 630px;
}

.omoi-left img {
    width: 100%;
    max-width: 550px;
    height: 370px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

.omoi-right{
    max-width: 600px;

}

.omoi-right p {
    margin: 0;
    padding:20px 0 0 0;
    line-height: 30px;
    max-width: 600px;
    height: 260px;
    font-size: 17.5px;
    font-family: YuGothic, sans-serif;
    text-align: left;
    word-break: normal;
    font-weight:300;

}


.ryoukin{
    display: flex;
    font-weight: 700;
    font-size: 22px;
    align-items: flex-end;
    justify-content: flex-end;
    font-family: 'Yu Gothic', '游ゴシック', 'ヒラギノ角ゴ Pro W3', sans-serif;
}



.omoi-btn a,
.cta .btn {
    display: inline-block;
    background: #3b2461;
    color: #fff;
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 50px;
    margin: 60px 0;
    transition: all 0.3s ease;
}

.omoi-btn a:hover,
.cta .btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.08);
}

.title1 {
    max-width: 600px;
    font-family: 'ＭＳ 明朝', serif;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    justify-content: start;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 3px 3px;
    overflow: hidden;
    border: 2px solid #5bc8ac;
    border-radius: 5px;
    color: #000;
    background-color: #ffffffc9;
    z-index: -2;
    line-height: 40px;
}

.title1:before {
    position: absolute;
    top: -80%;
    left: -50px;
    z-index: -1;
    transform: rotate(25deg);
    width: 100px;
    height: 200%;
    background-color: #5bc8ac;
    content: '';
}

.title1 span {
    margin-right: 40px;
    color: #fff;
    font-size: 24px;
}

.fas.fa-hammer {
    color: #5bc8ac;
}

/* ========== GALLERY ========== */
.lightbox-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 80px;
    justify-content: center;
}

.gallery-wrapper {
  background-color:#c2c2c2;
  width: 100vw;      /* ビューポート幅いっぱい */
  position: relative; /* 横スクロール防止 */
  left: 50%;
  right: 50%;
  margin-left: -50vw;  /* 横に広げて左右の余白を消す */
  margin-right: -50vw;
  padding: -10px 0;     /* 上下の余白 */
  color: #fff;
}

.gallery-content {
  max-width: 1600px;   /* コンテンツ幅を制限 */
  margin: 0 auto;
  padding: 0 20px;
}



/* サムネイル全体を囲うdiv設定 */
.lightbox-thumb {
    position: relative;
    display: inline-block;
}

/* サムネイル画像 */
.lightbox-thumb img {
    width: 200px;
    height: 200px;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

/* hover時 */
.lightbox-thumb img:hover {
    border-color: #333;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* 虫眼鏡アイコン */
.zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    font-size: 1.8rem;
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s ease;
}

/* hover時に明るくする */
.lightbox-thumb:hover .zoom-icon {
    opacity: 1;
}

/* ギャラリータイトル */
.gallery-title {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 40px;
    color: #3b2461;
    text-align: center;
    font-family: 'Shippori Antique', serif;
    letter-spacing: 0.9rem;
}

/* 新しく移動させたボックスを中央寄せ */
.omoi > .omoi-item:last-child {
    display: flex;
    justify-content: center;
}

.omoi > .omoi-item:last-child .omoi-right {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* ライトボックスモーダル */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
}

.lightbox-close {
    top: 20px;
    right: 40px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* ---------- 問い合わせセクション（背景BOX含む） ---------- */
.contact-buttons-wrapper {
    background: #ececec;
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    max-width: 700px;
    margin: 0px auto;
    margin-bottom: 90px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-family: 'Yu Gothic', '游ゴシック', 'ヒラギノ角ゴ Pro W3', sans-serif;
}

/* マイクロコピー（上のテキスト） */
.contact-buttons-wrapper .microcopy {
    font-size: 22px;
    color: #000;
    margin-top: 30px;
    margin-bottom: -22px;
}

/* お問い合わせボタン・電話ボタン共通 */
.contact-buttons-wrapper .btn {
    display: block;
    background-color: #371966;
    color: #fff;
    font-size: 30px; /* 見やすく大きめ */
    font-weight: bold;
    font-family: 'Yu Gothic', '游ゴシック', 'ヒラギノ角ゴ Pro W3', sans-serif;
    padding: 14px 20px;
    width: 420px; /* ライトボックス写真２枚分程度 */
    max-width: 90%;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgb(34, 34, 34);
    margin: 20px auto;
    cursor: pointer;
    letter-spacing: 4px;
}

.phone-below{
    font-size: 18px;
    font-family: 'Yu Gothic', '游ゴシック', 'ヒラギノ角ゴ Pro W3', sans-serif;
    letter-spacing: 9px;
    padding: 0;
    margin: 0;
}

/* hover時 */
.contact-buttons-wrapper .btn:hover {
    background-color: #000000;
    transform: scale(1.05);
}

/* アイコン（メール・電話共通） */
.contact-buttons-wrapper .btn i {
    margin-right: 6px;
    font-size: 1.3em;
    vertical-align: middle;
    color: #fff;
}

/* 受付時間テキスト */
.contact-buttons-wrapper  .business-hours{
    font-size: 16px;
    margin-top: -14px;
    color: #000;
}

/* ---------- 以前のスタイルを無効化（上書き用） ---------- */
.cta, .cta .microcopy, .cta .btn,
.phone-inquiry, .phone-inquiry .microcopy,
.phone-inquiry .phone-number, .phone-inquiry .business-hours {
    all: unset;
}


/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 20px;
    position: relative;
    background: #d8d2e8;
    color: #42119e;
}

.footer .copyright {
    font-size: 18px;
    margin-top: 10px;
}

/* ========== CONTACT ========== */
.contact-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

/* ページタイトル */
.contact-container h1 {
    text-align: center;
    color: #42119e;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

/* お知らせ文章 */
.contact-note {
    max-width: 700px;
    margin: 20px auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
    position: relative; 
    z-index: 1;         
}

/* フォームのラベル */
.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* テキスト入力＆テキストエリア */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 30px;
    box-sizing: border-box;
    font-size: 1.1rem;
}

/* テキストエリアの高さとリサイズ制御 */
.contact-form textarea {
    min-height: 260px;
    resize: vertical;
}

/* プレースホルダーの色 */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
    font-size: 1rem;
}

/* 送信ボタン */
.contact-form button {
    display: block;
    width: 100%;
    padding: 20px;
    background: #5bc8ac;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background: #429e88;
}

/* 必須マーク */
.required {
    color: red;
    font-size: 1rem;
}

/* サンクスメッセージオーバーレイ */
.thanks-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e9f9f6;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* サンクスメッセージボックス */
.thanks-overlay .thanks-message {
    max-width: 500px;
    width: 90%;
    background: #fff; 
    border: 2px solid #5bc8ac;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

thanks-message {
    z-index: 10000;    
}

/* サンクスメッセージを中央表示 */
.contact-container .thanks-message {
    display: none;
    background: #e9f9f6;
    border: 2px solid #5bc8ac;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    margin-top: 20px;
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}


@media screen and (max-width: 768px) {

/* ===== HEADER ===== */
    .header {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    border-bottom: none !important;
    padding: 0;
    }

    /* ヘッダー内コンテナ */
    .header-container {
    flex-direction: column;
    align-items: center;
    display: flex;
    flex-wrap: wrap; /* 折り返し可能 */
    padding: 0;
    width: auto;
    }

    /* サイト名・ロゴ部分 */
    .site {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    margin-left: -20px;
    }

    /* ロゴ画像サイズ調整 */
    .kofuku {
    width: 70px;
    height: 70px;
    margin: 0;
    }

    /* キャッチコピーh1 */
    .catch h1 {
    font-size: 14px;
    text-align: center;
    width: 100%;
    }

    /* キャッチコピーh2 */
    .catch h2 {
    font-size: 24px;
    }

    /* ナビゲーション全体 */
    .nav {
    flex: 1 1 100%;
    margin: 0;
    display: flex;
    justify-content: center; /* 横方向中央寄せ */
    align-items: center;
    }

    /* ナビゲーションのリスト */
    .nav ul {
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 10px;
    }

    .nav li{
        margin: 0;
    }

    /* PC用の「ホーム」「サービス」リンクは非表示 */
    .nav ul li:nth-child(1),
    .nav ul li:nth-child(2) {
    display: none;
    }

    /* お問い合わせリンクは表示 */
    .nav ul li:nth-child(3) {
    display: block;
    }

    /* 電話番号ボタンは必ず表示 */
    .phone-below {
    display: flex !important;
    justify-content: center;   /* 横方向中央寄せ */
    margin-top: 5px;           /* 少し上余白 */    
    
    }

    .phone-link{
    font-size: 14px;
    font-weight: bolder;
    }


    /* ナビリンク・お問い合わせリンクのサイズ調整 */
    .nav a,
    .nav .contact-link {
    font-size: 14px;
    color: #42119e;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    }

/* ===== HERO ===== */

    #omoi {
        margin-bottom: 0;
        padding-bottom: 10px;
    }

    .hero h1 {
    font-size: 1px;
    color: transparent;
    position: relative;
    margin: 0;
    padding: 0;
    }

    .hero h1::before {
    content: "花巻市を中心に『岩手県全域対応中』";
    position: absolute;
    top: 45%; /* 少し上にずらしてh2との交差回避 */
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3b2461;
    background-color:rgba(212, 212, 212, 0.6);
    padding: 0.5em 1em;
    text-align: center;
    line-height: 2.5;
    white-space: nowrap; /*  1行に固定 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 20px;
    font-weight: 800;
    font-family: 'Yu Gothic', '游ゴシック', 'ヒラギノ角ゴ Pro W3', sans-serif;
    }

    .hero h2 {
    font-size: 18px;
    padding: 0.5rem 1rem;
    margin-top: 50px;
    color: #3b2461;
    font-weight: 400;
    line-height: 2.5;
    text-align: center;
    }


    .hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fade 8s infinite;
    filter: brightness(1.5) sepia(0.1) contrast(0.3);
    }

/*写真の表示位置指定*/
    .hero .slide:nth-child(1) {
    background-position: left top;
    }
/*レスポンシブのみ非表示*/
    .hero .slide:nth-of-type(4),
    .hero .slide:nth-of-type(6) {
    display: none !important;
    }
/*スライドショーの見える時間調整*/
    .hero .slide:nth-of-type(5) { animation-delay: 0s; }
    .hero .slide:nth-of-type(2) { animation-delay: 2s; }
    .hero .slide:nth-of-type(1) { animation-delay: 4s; }
    .hero .slide:nth-of-type(3) { animation-delay: 6s; }


/* ========== SERVICE ========== */
    .omoi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    background-color: #e0e0e0; 
    border-radius: 16px;
    padding:10px;
    margin-bottom: 30px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .omoi-left {
    order: 2;
    width: 100%;
    margin-bottom: 10px;
    padding: 0;
    margin: 0;
    }

    .omoi-left img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    order: 3;
    }

    .omoi-right {
    order: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    }

    .title1 {
    margin:0;
    background-color: #f3f3f3;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Yu Gothic', '游ゴシック', 'ヒラギノ角ゴ Pro W3', sans-serif;
    text-align: center;z-index: 100;
    }

    .omoi-right p {
    font-size: 16px;
    line-height: 28px;
    margin: 0;
    padding: 10px 0 10px 0;
    height: 300px;
    }

    .ryoukin {
    order: 4;
    font-size: 16px;
    justify-content:flex-end;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    white-space: nowrap;
    }


  .omoi-btn a {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }


/* ========== GALLERY ========== */
  .lightbox-thumb img {
    width: 140px;
    height: 140px;
  }

  .gallery-title {
    font-size: 20px;
    letter-spacing: 3px;
    margin: 24px 0;
  }

 .lightbox-gallery{
    margin: 0;
 }

.gallery-content{
    padding-bottom:40px ;
}


  /* 問い合わせボックス */


  .contact-buttons-wrapper {
    padding: 20px;
    margin: 0px 20px;
    margin-bottom: 30px;
    margin-top: 20px;
  }

  .contact-buttons-wrapper .btn {
    width: 100%;
    font-size: 15px;
    padding: 12px;
    margin: 20px 0px;

  }

  .contact-buttons-wrapper .microcopy {
    font-size: 15px;
    margin-top: 10px;
  }

  /* フォーム */
  .contact-container {
    padding: 20px;
    margin: 30px 15px;
  }

  .contact-container h1 {
    font-size: 15px;
  }

  .contact-note{
    font-size: 14px;
    text-align: left;
  }

  .contact-form label {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 14px;
  }

  .contact-form button {
    font-size: 1.2rem;
    padding: 16px;
  }

  .thanks-message {
    font-size: 1.1rem;
    padding: 20px;
  }

  /* フッター */
  .footer {
    font-size: 14px;
  }
}


@media screen and (max-width: 390px) {
  .title1 {
    font-size: 14.5px;
  }

  .omoi-right p {
    font-size: 15px;
    line-height: 24px;
  }

  .ryoukin {
    font-size: 15px;
    margin-top: 0;
  }
}
