@charset "UTF-8";

/* ============================================================
   FEEL様 トップページ差し替え専用スタイル (top2.css)
   既存の共通スタイルに影響を与えないよう設計しています
   ============================================================ */

/* 全体を囲むコンテナ */
.top2-wrapper {
    overflow: hidden;
    background-color: #fff;
    width: 100%;
}

/* --- メインビジュアルエリア --- */
/* --- 修正箇所：スライダーの高さを少し小さく --- */

.tp2-main-visual {
    position: relative;
    width: 100%;
    /* 高さを少し抑える設定に変更 */
    height: 60vh;      /* 画面の高さの60%（前回は75%） */
    min-height: 350px; /* 最小の高さも少し下げました */
    max-height: 550px; /* 大きくなりすぎないよう最大値を設定 */
    background: #f4f4f4;
    overflow: hidden;
}

/* テキストの位置も、高さに合わせて少し調整が必要な場合は 
   上の .tp2-visual-overlay の top: 60px; を 40px などに変えてみてください。
*/

/* スライダーの画像設定 */
.tp2-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.tp2-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08); /* 少し大きくしてズームイン効果の準備 */
    transition: opacity 1.5s ease-in-out, transform 6s linear;
}

.tp2-slide.active {
    opacity: 1;
    transform: scale(1.0); /* スッと引くような動き */
}
/* --- 【重要】右上隅の英文テキスト配置 --- */
/* --- 修正箇所：コピーの配置・色・サイズ --- */

/* テキストを配置する箱：左上隅に固定 */
.tp2-visual-overlay {
    position: absolute;
    top: 60px;    /* ヘッダーからの距離 */
    left: 5%;     /* 左端から5%の位置に変更 */
    z-index: 20;
    text-align: left; /* 左寄せに変更 */
    width: auto;
}

/* 英文テキストのスタイル */
.tp2-en-copy {
    font-size: 38px;  /* サイズを小さく調整（前回52px → 今回38px） */
    font-weight: bold;
    color: #ffffff;   /* 文字色を白に変更 */
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.05em;
    
    /* 黒系のドロップシャドウを薄く入れて、白い画像の上でも読めるようにします */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    
    /* アニメーション初期状態：左からスッと出るように変更 */
    opacity: 0;
    transform: translateX(-30px); /* 左側にずらしておく */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* 2行目のディレイ設定 */
.tp2-en-copy:nth-child(2) {
    transition-delay: 0.4s;
}

/* 出現時 */
.tp2-en-copy.active {
    opacity: 1;
    transform: translateX(0);
}

/* スマホ用のサイズ調整（さらに小さく） */
@media screen and (max-width: 768px) {
    .tp2-visual-overlay {
        top: 30px;
        left: 20px;
    }
    .tp2-en-copy {
        font-size: 20px; /* スマホではさらに控えめなサイズに */
    }
}





/* --- コンテンツエリア --- */
.tp2-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.tp2-section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    letter-spacing: 0.1em;
}

.tp2-lead-text {
    text-align: center;
    line-height: 2.2;
    margin-bottom: 80px;
    font-size: 17px;
    color: #444;
}

/* 4カラムサービス */
.tp2-service-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 120px;
}

.tp2-service-item {
    flex: 1;
    text-align: center;
}

.tp2-item-img {
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tp2-item-img img {
    width: 100%;
    transition: transform 0.6s ease;
}

.tp2-service-item:hover .tp2-item-img img {
    transform: scale(1.1);
}

.tp2-service-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.tp2-service-item p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    text-align: left;
}

/* インパクトセクション（赤文字タイトル） */
.tp2-impact {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid #eee;
}

.tp2-impact-title {
    font-size: 42px;
    color: #a52a2a; /* 伝えるデザイン。のエンジ色 */
    margin-bottom: 50px;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.tp2-impact-body {
    max-width: 850px;
    margin: 0 auto 60px;
    color: #444;
    line-height: 2.2;
    font-size: 16px;
}

/* お問合せ・TELエリア */
.tp2-contact-area {
    margin-top: 60px;
}

.tp2-contact-msg {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
}

.tp2-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d8cbb8; /* 添付画像通りのベージュ */
    color: #333;
    width: 320px;
    height: 60px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    position: relative;
    transition: background 0.3s, transform 0.2s;
}

.tp2-contact-btn:hover {
    background: #c9bca6;
    transform: translateY(-2px);
}

.tp2-btn-icon {
    position: absolute;
    right: 25px;
    font-size: 24px;
}

.tp2-tel-number {
    font-size: 32px;
    font-weight: bold;
    margin-top: 30px;
    color: #333;
}

/* スクロールで現れるアニメーション設定 */
.tp2-js-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease-out, transform 1s ease-out;
}

.tp2-js-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- レスポンシブ (スマホ対応) --- */
@media screen and (max-width: 768px) {
    .tp2-main-visual { height: 50vh; }
    .tp2-visual-overlay { top: 40px; right: 20px; }
    .tp2-en-copy { font-size: 28px; }
    
    .tp2-service-grid {
        flex-direction: column;
        gap: 50px;
    }
    
    .tp2-impact-title { font-size: 30px; }
    .tp2-contact-btn { width: 90%; max-width: 320px; }
}

/* --- よこスクロール --- */
.js-scroll-wrapper {
  display: flex;             /* 横並びにする */
  overflow-x: auto;          /* 横スクロールを有効にする */
  white-space: nowrap;       /* 改行を防ぐ */
  -webkit-overflow-scrolling: touch; /* スマホ操作を滑らかに */
}

.scroll-item {
  flex: 0 0 auto;            /* 要素が縮まないように固定 */
  width: 300px;              /* 資料のデザインに合わせた幅 */
  margin-right: 15px;
}

