/*
Theme Name: My Portfolio Theme
Author: kotaro
Description: WEBデザイナーを目指すkotaroのポートフォリオサイト用オリジナルテーマです。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: my-portfolio-theme
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* googleフォント */
@import url('https://fonts.googleapis.com/css2?family=Playwrite+AU+QLD:wght@100..400&display=swap');


/* ★★★ ここまで ★★★ */

/* ページ内リンクをスムーズスクロールさせる */
html {
    scroll-behavior: smooth;
}

/* ブラウザのデフォルトマージンをリセット */
body {
    margin: 0;
}

/* タイトル英語共通フォント */
h1, h2, label, .form-submit {
    font-family: 'Playwrite AU QLD'; /* タイトル用のフォント */
}

/*----------------------------------------------------
 ヘッダー
----------------------------------------------------*/
.site-header {
    width: 100%;
    background-color: #fff;
}

.header-inner {
    /* ある程度中央に寄せるための設定 */
    max-width: 1200px; /* 最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 8%; /* 左右の余白 */

    /* ロゴとナビを左右に配置 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-branding a {
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    color: #333;
}

/*----------------------------------------------------
 ロゴサイズ
----------------------------------------------------*/
.site-branding .custom-logo {
    height: 80px; /* Adjust this value to your liking */
    width: auto;  /* Width will scale automatically */
}

/* PC用ナビゲーション */
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex; /* 横並びにする */
    align-items: center;
}

.main-navigation ul li {
    position: relative; /* プルダウンの基準位置 */
}

.main-navigation ul li a {
    text-decoration: none;
    color: #333;
}

/* PC用プルダウンメニュー（サブメニュー） */
.main-navigation ul .sub-menu {
    display: none; /* 最初は非表示 */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #eee;
    white-space: nowrap; /* テキストを改行させない */
    z-index: 10;
    width: 100%; /* 親メニューと同じ幅にする */
    box-sizing: border-box; /* paddingとborderを幅の計算に含める */
    border-top: none; /* 親メニューとの境界線をなくす */
    padding: 0; /* 内側の余白は下のli aで調整するためリセット */
}

.main-navigation ul li:hover > .sub-menu {
    display: block; /* ホバーで表示 */
}

.main-navigation ul .sub-menu li {
    margin: 0;
    padding: 0;
    border-top: 1px solid #eee; /* メニュー項目間の区切り線 */
}
.main-navigation ul .sub-menu li:first-child {
    border-top: none; /* 最初の項目の上線は不要 */
}

/* ★★★ サブメニュー内のリンクスタイルを追加 ★★★ */
.main-navigation ul .sub-menu li a {
    display: flex;           /* Flexbox化 */
    align-items: center;     /* 上下中央揃え */
    justify-content: center; /* 左右中央揃え */
    height: 60px;            /* 高さを直接指定（この数値を調整） */
    padding: 0 20px;         /* 左右の余白のみに設定 */
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}


/*----------------------------------------------------
 ナビゲーション ホバーアニメーション（背景色フェード）
----------------------------------------------------*/
.main-navigation ul li a {
    display: flex; /* Flexbox化して中の文字を中央揃えしやすくする */
    align-items: center; /* 文字を上下中央に配置 */
    height: 80px; /* ヘッダーの高さと合わせる */
    padding: 0 25px; /* 左右の余白のみに設定 */

    text-decoration: none;
    color: #333;
    border-radius: 0;
    
    /* 背景色と文字色の変化を0.3秒かけて行うアニメーション設定 */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/*----------------------------------------------------
 ナビゲーション ホバー色連動
----------------------------------------------------*/

/* 赤系統の背景の時 */
.bg-red .main-navigation ul li a:hover {
    background-color: #f1948a; /* オレンジ系の色 */
}

/* 緑系統の背景の時 */
.bg-green .main-navigation ul li a:hover {
    background-color: #82e0aa; /* 少し薄い緑 */
}

/* 青系統の背景の時 */
.bg-blue .main-navigation ul li a:hover {
    background-color: #85c1e9; /* 少し薄い青 */
}

/* ホバー時の文字色は白で統一（任意） */
.main-navigation ul li a:hover {
    color: #fff; /* ホバー時の文字色 */
}

/* ハンバーガーボタンはPCでは非表示 */
.hamburger-button {
    display: none;
}

/*----------------------------------------------------
 スクロール時の固定ヘッダー
----------------------------------------------------*/

/* ヘッダーに滑らかな変化のアニメーションを設定 */
.site-header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* 固定ヘッダー用のスタイル */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* 他の要素より手前に表示 */
    
    /* 半透明の背景色と影 */
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
    /* ガラスのようなぼかし効果（任意） */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ヘッダーが固定された時に、下のコンテンツがガクッと上がるのを防ぐ */
body.header-is-sticky #content {
    padding-top: 81px; /* ヘッダーの高さ分、余白を追加 */
}

/*----------------------------------------------------
 フッター
----------------------------------------------------*/
.site-footer {
    padding: 40px 20px;
    background-color: #f5f5f5;
    color: #666;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text p {
    margin: 0;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.6;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
}

/*----------------------------------------------------
 フッターテキストの色を動的に変更
----------------------------------------------------*/

/* 赤系統の背景の時 */
.bg-red .footer-text h2 {
    color: #c0392b; /* 濃い赤 */
}

/* 緑系統の背景の時 */
.bg-green .footer-text h2 {
    color: #27ae60; /* 濃い緑 */
}

/* 青系統の背景の時 */
.bg-blue .footer-text h2 {
    color: #2980b9; /* 濃い青 */
}

/*----------------------------------------------------
 トップへ戻るボタン
----------------------------------------------------*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;

    /* 見た目 */
    width: 50px;
    height: 50px;
    background-color: #333; /* デフォルトの色 */
    border-radius: 50%;
    
    /* ★変更★ SVGアイコンを中央揃えにする */
    display: flex;
    justify-content: center;
    align-items: center;

    /* 最初は非表示にしておく */
    opacity: 0;
    visibility: hidden;

    /* アニメーションの設定 */
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s, transform 0.3s;

    border: 2px solid #fff;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ★NEW★ ホバーアニメーション */
.back-to-top:hover {
    transform: translateY(-5px); /* 少し上に移動 */
    filter: brightness(1.2); /* 少し明るくする */
}

/* SVGアイコンの色 */
.back-to-top svg {
    fill: #fff;
}

/*----------------------------------------------------
 トップへ戻るボタンの色を動的に変更
----------------------------------------------------*/
/* 赤系統の背景の時 */
.bg-red .back-to-top {
    background-color: #c0392b; /* 濃い赤 */
}
/* 緑系統の背景の時 */
.bg-green .back-to-top {
    background-color: #27ae60; /* 濃い緑 */
}
/* 青系統の背景の時 */
.bg-blue .back-to-top {
    background-color: #2980b9; /* 濃い青 */
}

/*----------------------------------------------------
 メインビジュアル (Hero Section)
----------------------------------------------------*/
.hero-section {
    width: 100%;
    height: 100dvh; /* 画面の高さいっぱいに広げる */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

/* 背景画像用の擬似要素 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/main-visual.png'); /* 用意した背景画像 */
    background-size: cover;
    background-position: center;
    opacity: 0.8; /* 半透明にする */
    z-index: 1;
    
    /* 初期状態は非表示 */
    display: none;
}
/* is-cover-activeクラスが付いたら表示 */
.hero-section.is-cover-active::before {
    display: block;
}

.hero-inner {
    position: relative;
    z-index: 2; /* 擬似要素より手前に表示 */
    text-align: center;
}

.site-title {
    font-size: 48px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字を読みやすくするための影 */
}

.site-description {
    font-size: 30px;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字を読みやすくするための影 */
}

.color-gimmick {
    position: relative; /* ボタンの位置の基準 */
    width: 400px; /* コントローラーのサイズに合わせて調整 */
}

.gimmick-controller-img {
    width: 100%;
    height: auto;
}

.gimmick-btn {
    position: absolute;
    border: 2px solid #fff;
    color: #fff;
    font-weight: bold;
    font-family: sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    animation: pulse 2s infinite; /* 常時強調アニメーション */
}

/* ★★★ ボタンの位置はここで微調整してください ★★★ */
#btn-red { top: 31%; right: 16%; }
#btn-green { top: 42%; right: 14%; }
#btn-blue { top: 37%; right: 25%; }
#btn-cover { top: 27.5%; left: 37.5%; transform: translateX(-50%); }


/* ボタンの形 */
.gimmick-btn.circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
}

.gimmick-btn.trapezoid {
    /* ★レイアウトとテキスト配置 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;

    /* ★サイズと形 */
    width: 105px;  /* 台形の最も広い部分（上辺）の幅 */
    height: 69px;  /* 台形の高さ */
    background-color: rgba(0,0,0,0.3);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%); /* ★台形の形を定義 */
    
    /* ★アニメーションの基準点 */
    transform-origin: top center
}

/* 新しい強調アニメーション（拡大・縮小） */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/*----------------------------------------------------
 背景色用のクラス
----------------------------------------------------*/
.bg-red { background-color: #e74c3c; }
.bg-green { background-color: #2ecc71; } /* 初期状態の色 */
.bg-blue { background-color: #3498db; }

/*----------------------------------------------------
 ページ読み込み時のアニメーション
----------------------------------------------------*/

/* アニメーションを適用するクラス */
.fade-in-up {
    animation-name: fadeInUp; /* タイムラインで作成したキーフレームを再利用 */
    animation-duration: 0.8s; /* アニメーションの時間 */
    animation-fill-mode: forwards; /* アニメーション終了時の状態を維持 */
    opacity: 0; /* 初期状態は透明 */
}

/* 要素ごとにアニメーション開始を遅らせる */
.site-title.fade-in-up {
    animation-delay: 0.15s;
}
.site-description.fade-in-up {
    animation-delay: 0.3s;
}
.color-gimmick.fade-in-up {
    animation-delay: 0.45s;
}

/*----------------------------------------------------
 各セクション共通のスタイル
----------------------------------------------------*/
.section {
    padding: 80px 0; /* セクションの上下の余白 */
}

.section-inner {
    max-width: 900px; /* コンテンツの最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 20px; /* 左右の余白 */
    text-align: center; /* 中の要素を中央揃え */
}

.section-title {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 30px;
}

.section-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

/*----------------------------------------------------
 About Section
----------------------------------------------------*/
/* about-sectionに共通スタイルを適用 */
.about-section {
    padding: 80px 0;
}

/* about-section内のテキストの色を調整 */
.about-section .section-title,
.about-section .section-text {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字を読みやすくするための影 */
}

/*----------------------------------------------------
 Works Section
----------------------------------------------------*/
.works-section {
    padding: 80px 0;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.work-item a {
    display: block;
    text-decoration: none;
    color: #333;
}
.work-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.work-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.work-title {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

/*----------------------------------------------------
 スクロールアニメーション（共通）
----------------------------------------------------*/
/* 初期状態：透明で少し下に配置 */
.fade-in-up-group {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 画面内に入ったら表示 */
.fade-in-up-group.in-view {
    opacity: 1;
    transform: translateY(0);
}

/*----------------------------------------------------
 Modal (Common Styles)
----------------------------------------------------*/
/* モーダル全体のコンテナと背景 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}
.modal.is-open {
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

/* モーダルのコンテンツボックス（共通の枠） */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    padding: 30px;
    overflow-y: auto;
}

/* 閉じるボタン（共通） */
.modal-close {
    /* ★レイアウト★ */
    display: block; /* ブロック要素として扱う */
    position: sticky;
    top: 5px; /* スクロール時に画面上部から5pxの位置に固定 */
    z-index: 1001;
    margin-left: auto; /* ★変更★ floatの代わりに右寄せにする */
    margin-bottom: 15px; /* ★追加★ 下のコンテンツとの余白 */
    
    /* 見た目 */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;

    /* 中の「×」を中央揃え */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}
.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* 汎用的な非表示クラス */
.is-hidden {
    display: none;
}


/*----------------------------------------------------
 Works Modal 
----------------------------------------------------*/
.is-works-modal .modal-content {
    background: #1a1a1a;
    color: #f1f1f1;
}

.is-works-modal .modal-body {
    display: flex;
    gap: 35px;
    align-items: flex-start; 
}

/* --- コンテンツカラム (左側) --- */
.is-works-modal .modal-content-column {
    width: 50%;
    min-width: 0;
}
.is-works-modal .modal-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.is-works-modal .modal-section {
    margin-bottom: 20px;
}
.is-works-modal .modal-section h4 {
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}
.is-works-modal .modal-section p {
    font-size: 0.6rem;
}
.is-works-modal .modal-text {
    font-size: 0.6rem;
    line-height: 1.8;
}
.is-works-modal .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.is-works-modal .modal-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.is-works-modal .modal-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    width: 30%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.is-works-modal .modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.is-works-modal .modal-button {
    background-color: #007bff;
    color: #fff;
}
.is-works-modal .modal-button.secondary {
    background-color: #2ecc71;
    color: #fff;
}

/* --- メディアカラム (右側) --- */
.is-works-modal .modal-media-column {
    width: 50%;
    min-width: 0;
    position: relative; /* UI配置の基準点 */
    padding-bottom: 40px; /* ★追加★ ページネーションを置くための余白 */
    box-sizing: border-box; /* ★追加★ paddingを含めて高さを計算 */
}

/* １．単体の画像・動画用のスタイル */
.is-works-modal .modal-media-column > img,
.is-works-modal .modal-media-column > video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: #f5f5f5;
}

/* ２．ギャラリー用のスタイル */
.is-works-modal .swiper {
    border-radius: 8px;
    overflow: hidden; 
    background-color: #f5f5f5;
}
.is-works-modal .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}



/* --- Swiper UI --- */
.is-works-modal .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 20;
}
.is-works-modal .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}
.is-works-modal .swiper-pagination-bullet-active {
    background-color: #fff;
}
.is-works-modal .swiper-button-next,
.is-works-modal .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    z-index: 20;
    transition: background-color 0.2s;
}
.is-works-modal .swiper-button-next:hover,
.is-works-modal .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
.is-works-modal .swiper-button-next::after,
.is-works-modal .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}
.is-works-modal .swiper-button-prev {
  left: 15px;
}
.is-works-modal .swiper-button-next {
  right: 15px;
}

/* キャプション */
.is-works-modal .swiper-slide .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
}


/*----------------------------------------------------
 Services Modal (Specific Styles)
----------------------------------------------------*/
.is-service-modal .modal-content {
    background-color: #fff;
    color: #333;
}
.is-service-modal .modal-close {
    color: #333;
}

/* ★NEW★ 2カラムレイアウトの指定 */
.is-service-modal .modal-body {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* 上揃え */
}

.is-service-modal .modal-left,
.is-service-modal .modal-right {
    flex: 1;
    min-width: 0;
}

.is-service-modal .modal-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}
.is-service-modal .service-icon {
    max-width: 250px; /* ★アイコンの最大幅を指定（この数値を調整） */
    margin: 0 auto 20px auto; /* 上下左右中央揃えと、下のdlとの余白 */
}
.is-service-modal .service-icon img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #eee;
}
.is-service-modal .service-data dt {
    font-weight: bold;
    margin-top: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}
.is-service-modal .service-data dd {
    margin: 10px 0 0 0;
    font-size: 15px;
    line-height: 1.7;
}
.is-service-modal .service-emphasis {
    font-size: 22px;
    font-weight: bold;
    color: #e74c3c;
}
.is-service-modal .supplement-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding-left: 1em;
    border-left: 3px solid #eee;
}


/*----------------------------------------------------
 Skills Section (New Version)
----------------------------------------------------*/
.skills-section {
    padding: 80px 0;
    color: #fff; /* 背景色が暗い色でも見えるように、基本の文字色を白に */
    transition: background-color 0.5s ease; /* 背景色変更を滑らかに */
}

.skills-section .section-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.new-skills-container {
    text-align: left; /* コンテナ内は左揃えを基本とする */
}

/* 凡例 */
.skills-legend {
    margin: 0 auto 40px auto;
    padding: 20px 25px;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* 半透明の境界線 */
    background: rgba(0, 0, 0, 0.15); /* 半透明の黒背景 */
    border-radius: 8px;
}
.skills-legend dl {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}
.skills-legend dl:last-child {
    margin-bottom: 0;
}
.skills-legend dt {
    font-weight: bold;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 15px;
}
.skills-legend dd {
    margin-left: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85); /* 少し透明な白 */
    line-height: 1.6;
}

/* スキルレベルのアイコン */
.level-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    line-height: 1;
}
.level-icon.professional {
    color: #f5b041; /* 実務レベルの色 */
}
.level-icon.application {
    color: #f5b041; /* 応用レベルの色 */
}

/* スキルグリッド */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ★常に2カラムにする */
    gap: 30px;
    max-width: 700px; /* ★追加★ グリッド全体の最大幅を指定 */
    margin: 0 auto;   /* ★追加★ グリッド自体を中央に配置 */
}
.skill-category {
    background: rgba(255, 255, 255, 0.95); /* ★重要★ 半透明の白背景 */
    color: #333; /* カードの中の文字は黒 */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.category-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}
.skill-item img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}
.skill-item-group-title {
    font-weight: bold;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.skill-item-desc {
    font-size: 0.8rem;
    color: #666;
    padding-left: 46px; /* アイコン等の幅に合わせる */
    margin-top: -10px;
    margin-bottom: 15px;
}

/*----------------------------------------------------
 Services Section
----------------------------------------------------*/
.services-section {
    padding: 80px 0;
    background-color: #fff;
    color: #333;
}

.service-card {
    display: flex;
    gap: 30px; /* 画像とテキストの間の隙間 */
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    border: 1px solid #ddd;  /* 枠線を追加 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* 影を少し濃く */
}
/* 2枚目以降のカードとの間に余白を設ける */
.service-card + .service-card {
    margin-top: 40px;
}

/* ★NEW★ 左の列 */
.service-left-column {
    flex: 1; /* 比率を1とする  */
}

/* ★変更★ 右の列 */
.service-details {
    flex: 1; /* 比率を1とする  */
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 3px;
    text-align: left;
}

.service-icon img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #eee;
}

.service-title {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center; /* タイトルのみ中央揃え */
}

.service-data dt {
    font-weight: bold;
    margin-top: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}
.service-data dd {
    margin: 10px 0 0 0;
    font-size: 15px;
    line-height: 1.7;
}

.supplement-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding-left: 1em;
    border-left: 3px solid #eee;
}

/*----------------------------------------------------
 Services Section Design Update
----------------------------------------------------*/

/* アイコンとテキストコンテンツのコンテナ */
.service-icon,
.service-details {
    border: 1px solid #eee; /* 内側の枠線 */
    padding: 20px;
    border-radius: 3px;
}

/* 目安制作期間と料金のテキスト（強調スタイル） */
.service-data .service-emphasis {
    font-size: 24px;   /* 文字を大きく */
    font-weight: bold; /* 太字に */
    color: #e74c3c;   /* 色付け（テーマの赤色） */
}

/* 補足テキストのスタイル調整 */
.service-data dd .supplement-text {
    margin-top: 5px;
}

/*----------------------------------------------------
 Services Section (1+3 Layout)
----------------------------------------------------*/

/* --- グリッドコンテナの定義 --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* サブアイテム用の3カラムを基本とする */
    gap: 30px;
    max-width: 800px; /* グリッド全体の最大幅 */
    margin: 0 auto;   /* グリッド自体を中央に配置 */
}

/* --- カードの共通スタイル --- */
.service-item a {
    display: flex; /* ★変更★ Flexboxで中身を制御 */
    flex-direction: column; /* ★追加★ 中身を縦に並べる */
    justify-content: flex-start; /* ★追加★ 上揃えにする */
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    border-radius: 8px; /* 角丸を少し大きく */
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%; /* 高さを揃える */
    box-sizing: border-box;
}
.service-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}
.service-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* --- ★★★ ここからがレイアウトの核心 ★★★ --- */

/* １．メインアイテム（1番目）のスタイル */
.service-item:first-child {
    grid-column: 1 / -1; /* 全てのカラムにまたがる（横幅いっぱい） */
}
.service-item:first-child a {
    display: flex; /* アイコンとテキストを横並びに */
    align-items: center;
    gap: 30px;
    text-align: left;
}
.service-item:first-child img {
    width: 150px; /* アイコンサイズを大きく */
    height: 150px;
    flex-shrink: 0; /* 縮まないようにする */
    object-fit: contain;
}
.service-item:first-child .service-item-title {
    font-size: 1.5rem; /* フォントサイズを大きく */
    margin-top: 0;
    font-weight: bold;
}


/* ２．サブアイテム（2番目以降）のスタイル */

.service-item:not(:first-child) a {
    text-align: center; /* テキストを中央揃えに */
}
.service-item:not(:first-child) img {
    width: 100%;
    max-width: 150px; /* ★追加★ アイコンの最大幅を100pxに制限 */
    height: auto;
    aspect-ratio: 4 / 3; /* 縦横比を維持 */
    object-fit: contain;
    margin: 0 auto 15px auto; /* ★変更★ 上下左右中央に配置し、下に余白 */
    border: 1px solid #eee;
    border-radius: 5px;
}
.service-item:not(:first-child) .service-item-title {
    margin-top: 10px;
    font-weight: bold;
}

/*----------------------------------------------------
 Profile Section
----------------------------------------------------*/
.profile-section {
    padding: 80px 0;
    color: #fff; /* 背景が色付きなので文字は白に */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字を読みやすくするための影 */
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 左の列：画像 */
.profile-image-wrapper {
    flex: 1; /* 比率を1とする (33.3%) */
    text-align: center;
}
.profile-image-wrapper img {
    max-width: 250px; /* 画像の最大サイズ */
    width: 100%;
    height: auto;
    border-radius: 50%; /* ★円形に切り抜く */
    background-color: #fff; /* ★画像の背景を白に */
    padding: 8px; /* 白背景の余白（枠のように見せる） */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 右の列：テキスト */
.profile-text-wrapper {
    flex: 2; /* 比率を2とする (66.6%) */
    text-align: left;
}
.profile-text-wrapper p {
    margin: 0 0 1em 0; /* 段落ごとの下の余白 */
    line-height: 1.8;
}
.profile-text-wrapper p:last-child {
    margin-bottom: 0;
}

/*----------------------------------------------------
 Timeline Section
----------------------------------------------------*/
.timeline-section {
    padding: 80px 0;
    background-color: #fff;
    color: #333;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* タイムラインの真ん中の線 */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: #ddd;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px;
    margin-bottom: 40px;
    box-sizing: border-box; /* ★この一行を追加★ */
}
.timeline-item:last-child {
    margin-bottom: 0;
}

/* 奇数番目を左側に配置 */
.timeline-item:nth-child(odd) {
    left: 0;
}

/* 偶数番目を右側に配置 */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* タイムラインの画像のスタイル */
.timeline-image {
    display: block;
    
    /* ★変更：正円にするための指定 */
    width: 200px;  /* 幅を固定 */
    height: 200px; /* 高さを幅と同じにして正方形に */
    object-fit: cover; /* 画像を切り取って円の中にきれいに収める */
    
    border-radius: 50%;
    margin: 0 auto 15px auto;
    
    /* ★変更：縁の色をオレンジ系に */
    background-color: #d35400;
    
    padding: 4px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* タイムライン上のポイント（円） */
.timeline-item::after {
    content: '';
    position: absolute;
    /* ★変更★ 画像の上部に合わせて位置を微調整 */
    top: 45px; 
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #f5b041;
    z-index: 1;
}
.timeline-item:nth-child(odd)::after {
    right: -10px;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    /* ★変更：背景色を薄いオレンジ系に */
    background-color: #d35400;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字を読みやすくするための影 */
}

/* ★NEW★ テキストの左右揃えをコンテンツブロックに限定 */
.timeline-item:nth-child(odd) .timeline-content, 
.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}


/* h3（タイトル）の基本スタイル */
.timeline-item h3 {
    position: absolute;
    top: 25px; /* ポイント（円）の高さと合わせる */
    transform: translateY(-50%); /* 上下中央揃え */
    white-space: nowrap; /* テキストを改行させない */
    font-size: 16px;
    font-weight: bold;
    color: #d35400;
}

/* 奇数番目（左側）のアイテムのタイトル */
.timeline-item:nth-child(odd) h3 {
    left: 100%; /* 親要素の右端を基準に */
    margin-left: 25px; /* ポイントとの余白 */
}

/* 偶数番目（右側）のアイテムのタイトル */
.timeline-item:nth-child(even) h3 {
    right: 100%; /* 親要素の左端を基準に */
    margin-right: 25px; /* ポイントとの余白 */
}
.timeline-content p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
}

.final-thought {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
    text-align: center; /* h3を中央揃えにするため */
}

.final-thought h3 {
    font-size: 22px;
    margin-bottom: 30px;
}

.final-thought p {
    text-align: left; /* p要素だけ左揃えに */
    margin-bottom: 1.5em; /* 段落間の隙間 */
}

/* 最後のp要素の下には隙間を設けない */
.final-thought p:last-child {
    margin-bottom: 0;
}

/*タイムラインのアニメーション*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* 少し下から */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.timeline-item .timeline-image,
.timeline-item h3,
.timeline-item .timeline-content {
   opacity: 0; /* 最初は透明 */
   transform: translateY(20px); /* 少し下に配置 */
   transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* アニメーションのイージング */
}

.timeline-item.in-view .timeline-image,
.timeline-item.in-view h3,
.timeline-item.in-view .timeline-content {
   opacity: 1; /* スクロールされたら表示 */
   transform: translateY(0);
}

/*----------------------------------------------------
 Contact Section
----------------------------------------------------*/
.contact-section {
    padding: 40px 0;
    color: #fff;
}
.contact-section .section-title,
.contact-section .section-text {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字を読みやすくするための影 */
}

/* ★NEW★ フォーム全体を囲むラッパー */
.contact-form-wrapper .contact-form-container {
    max-width: 700px;
    margin: 40px auto 0 auto;
    border-radius: 5px;
    padding: 30px;
}

/* 横並びにするための行 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row .form-group {
    flex: 1; /* 幅を均等にする */
}

/* フォームの各項目 */
.wpcf7-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0; /* ★変更：薄いグレーに */
    box-sizing: border-box; /* ★追加：はみ出しを防止 */
}
.wpcf7-form label {
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.wpcf7-form textarea {
    height: 150px; /* メッセージ欄の高さ */
}

/* 「(必須)」の文字を赤くする */
.wpcf7-form label span {
    color: #e74c3c;
    font-size: 14px;
    margin-left: 5px;
}

/* 送信ボタン */
.form-submit {
    text-align: center; /* ボタンを中央に */
    margin-top: 30px;
}
.wpcf7-submit {
    display: block; /* ★追加★ ブロック要素に変更 */
    margin: 0 auto; /* ★追加★ 左右の余白を自動にして中央揃え */

    width: auto;
    padding: 10px 40px;
    border: none;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: inherit;
}
.wpcf7-submit:hover {
    opacity: 0.8;
}

/* モーダル表示時に背景のスクロールを固定 */
body.modal-open {
    overflow: hidden;
}


/*----------------------------------------------------
 タブレット表示 (1024px以下)
----------------------------------------------------*/
@media (max-width: 1024px) {
     /* PC用ナビを非表示に */
     .main-navigation {
        display: none;
    }
    
    /* ハンバーガーボタンを表示 */
    .hamburger-button {
        display: inline-block;
        /* 以下、ハンバーガーボタンのスタイル */
        position: relative;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        cursor: pointer;
        z-index: 100;
    }

    .hamburger-box {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 24px;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        position: absolute;
        width: 30px;
        height: 2px;
        background-color: #333;
        transition: transform 0.3s;
    }

    .hamburger-inner {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-inner::before,
    .hamburger-inner::after {
        content: '';
        left: 0;
    }

    .hamburger-inner::before {
        top: -10px;
    }
    
    .hamburger-inner::after {
        top: 10px;
    }

    /* ハンバーガーメニューが開いた時のスタイル */
    .hamburger-button.is-active .hamburger-inner {
        transform: rotate(45deg);
    }
    .hamburger-button.is-active .hamburger-inner::before {
        top: 0;
        transform: rotate(90deg);
    }
    .hamburger-button.is-active .hamburger-inner::after {
        top: 0;
        transform: rotate(90deg);
        opacity: 0; /* 真ん中の線を消す */
    }

    /* モバイル用ナビゲーションが開いた時のスタイル */
    .main-navigation.is-active {
        display: block; /* 表示する */
        position: absolute;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #eee;
        z-index: 99; /* ヘッダーの下に隠れないように */
        overflow-y: auto; /* ★追加★ 縦方向にはみ出たらスクロールさせる */
    }

    .main-navigation.is-active ul {
        display: block; /* 縦並びにする */
    }
    
    .main-navigation.is-active ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .main-navigation.is-active ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 18px; /* フォントサイズを大きく */
        font-weight: bold; /* 太字に */
        text-align: center; /* 中央揃え */
        height: 45px;
    }
    
    /* モバイル用プルダウンメニュー */
    .main-navigation.is-active ul .sub-menu {
        position: static; /* positionをリセット */
        display: none; /* 最初は非表示 */
        border: none;
        padding: 0;
        white-space: normal;
        background: #f9f9f9;
    }
    .main-navigation.is-active ul .sub-menu li a {
        padding-left: 40px; /* インデントを付けて階層を表現 */
    }

    /* モバイル用プルダウンの矢印 */
    .main-navigation.is-active .menu-item-has-children > a {
        position: relative; /* 矢印の基準位置 */
    }

    .main-navigation.is-active .menu-item-has-children > a::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%) rotate(45deg);
        width: 8px;
        height: 8px;
        border-bottom: 2px solid #333;
        border-right: 2px solid #333;
        transition: transform 0.3s ease;
    }

    /* 開いた時の矢印（上向きに回転） */
    .main-navigation.is-active .menu-item-has-children.is-open > a::after {
        transform: translateY(-50%) rotate(-135deg);
    }

    /*----------------------------------------------------
 　　メインビジュアルのレスポンシブ対応
　　　----------------------------------------------------*/
    .hero-section {
        height: 60dvh; 
    }
    .site-title {
        font-size: 40px; /* 文字サイズを少し小さく */
    }

    .site-description {
        font-size: 26px; /* 文字サイズを少し小さく */
    }

    .color-gimmick {
        width: 350px; /* コントローラーのサイズを少し小さく */
    }

    .gimmick-btn.trapezoid {
        /* ★レイアウトとテキスト配置 */
        font-size: 16px;
    
        /* ★サイズと形 */
        width: 90px;  /* 台形の最も広い部分（上辺）の幅 */
        height: 59px;  /* 台形の高さ */
    }
    
}

/*----------------------------------------------------
 フッターとトップへ戻るボタンのレスポンシブ対応
 (画面幅768px以下に適用)
----------------------------------------------------*/
@media (max-width: 768px) {

    .site-footer {
        /* 上下の余白を少し詰める */
        padding: 30px 20px;
    }

    .footer-text p {
        /* テキストの文字サイズを少し小さく */
        font-size: 14px;
    }

    .copyright {
        /* コピーライトの文字サイズを少し小さく */
        font-size: 12px;
    }

    .back-to-top {
        /* ボタンを少し小さくし、位置を調整 */
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }

    .site-title {
        font-size: 32px; /* さらに文字サイズを小さく */
    }

    .site-description {
        font-size: 20px; /* さらに文字サイズを小さく */
        margin-bottom: 30px; /* ボタンとの間隔を少し詰める */
    }

    .color-gimmick {
        width: 300px; /* コントローラーのサイズをさらに小さく */
    }

    /* ボタン全体のスタイルを少し小さく */
    .gimmick-btn {
        border-width: 1px;
    }

    /* 円形ボタンのサイズを調整 */
    .gimmick-btn.circle {
        width: 30px;
        height: 30px;
    }

    /* 台形ボタンのサイズと文字サイズを調整 */
    .gimmick-btn.trapezoid {
        width: 80px;
        height: 50px;
        font-size: 14px;
    }

    /*----------------------------------------------------
    Section 共通
    ----------------------------------------------------*/
    .section-title {
        font-size: 24px; /* タイトルの文字サイズを小さく */
    }
    .section-text p {
        font-size: 12px;
    }

    /*----------------------------------------------------
    about site Section 
    ----------------------------------------------------*/
    .about-section .section-text {
        text-align: left; /* テキストを左揃えに */
        line-height: 1.6; /* 行間を少し詰める */
    }

    /*----------------------------------------------------
    timeline Section 
    ----------------------------------------------------*/
    .timeline-section .section-text {
        text-align: left; /* テキストを左揃えに */
        line-height: 1.6; /* 行間を少し詰める */
    }
    .timeline-section .section-text h3 {
        text-align: center; /* タイトルを中央揃えに */
    }

    /*----------------------------------------------------
    contact Section 
    ----------------------------------------------------*/

    .contact-section .section-text {
        font-size: 14px; /* テキストの文字サイズを小さく */
        text-align: left; /* テキストを左揃えに */
        line-height: 1.6; /* 行間を少し詰める */ 
    }

    /*----------------------------------------------------
    modalのレスポンシブ対応
    ----------------------------------------------------*/
    .is-works-modal .modal-body {
        flex-direction: column; /* 縦積みに変更 */
    }

    /* カラム幅をリセット */
    .is-works-modal .modal-content-column,
    .is-works-modal .modal-media-column {
        width: 100%;
    }
    .is-works-modal .modal-media-column {
        order: -1; /* メディアを上に */
    }
    .is-service-modal .modal-body {
        flex-direction: column; /* 縦積みに変更 */
    }
    /* ★★★ ここからが修正の核心 ★★★ */
    /* 左カラムの中身もFlexboxで制御 */
    .is-service-modal .modal-left {
        display: flex;
        flex-direction: column;
    }
    /* アイコンを1番目（上）に配置 */
    .is-service-modal .service-icon {
        order: 1;
    }
    /* タイトルを2番目（下）に配置 */
    .is-service-modal .modal-title {
        order: 2;
    }

    /*----------------------------------------------------
    skillsのレスポンシブ対応
    ----------------------------------------------------*/
    /* スキルグリッドを1カラムにする */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* 凡例を縦積みにする */
    .skills-legend dl {
        display: block;
    }
    .skills-legend dt {
        margin-bottom: 5px; /* 説明文との間に少し余白を設ける */
    }

    /*----------------------------------------------------
    servicesのレスポンシブ対応
    ----------------------------------------------------*/
    .services-grid {
        /* スマホでは2カラムにする */
        grid-template-columns: repeat(2, 1fr);
    }
    /* メインアイテムも、スマホでは通常アイテムと同じサイズにする */
    .service-item:first-child {
        grid-column: auto; /* 全幅指定を解除 */
    }
    .service-item:first-child a {
        display: block; /* 通常の縦積みに戻す */
        text-align: center;
    }
    .service-item:first-child img {
        width: 100%;
        aspect-ratio: 4 / 3;
        margin-bottom: 15px;
    }
    .service-item:first-child .service-item-title {
        font-size: 1rem; /* 通常のフォントサイズに */
    }

    /*----------------------------------------------------
    profileのレスポンシブ対応
    ----------------------------------------------------*/
    .profile-container {
        flex-direction: column; /* 縦並びにする */
    }
    .profile-image-wrapper {
        margin-bottom: 30px;
    }

    /*----------------------------------------------------
    タイムラインのレスポンシブ対応
    ----------------------------------------------------*/
    /* タイムラインの真ん中の線を、見出しが入るスペースを空けて配置 */
    .timeline-container::before {
        left: 80px; /* より左に移動 */
    }

    /* アイテム全体のスタイル */
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        /* 線より右側にコンテンツを配置するための余白 */
        padding-left: 100px; /* さらに余白を調整 */
        padding-right: 15px; /* 画面右端の余白 */
        box-sizing: border-box; /* box-sizingを念のため追加 */
    }

    /* ポイントの位置を線の上に再調整 */
    .timeline-item::after,
    .timeline-item:nth-child(even)::after,
    .timeline-item:nth-child(odd)::after {
        left: 66px; 
    }

    /* 見出し（h3）を線の左側に絶対配置（奇数・偶数ともに）*/
    .timeline-item:nth-child(odd) h3,
    .timeline-item:nth-child(even) h3 {
        position: absolute;
        left: 0;
        right: auto; /* PC用のright指定をリセット */
        top: 60px;
        transform: translateY(-50%);
        width: 60px;
        padding-right: 5px;
        text-align: left;
        font-size: 12px;
        margin: 0;
        white-space: normal;
        line-height: 1.3;
    }

    /* コンテンツのテキストは全て左揃えに */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        font-size: 10px;
    }
    /* タイムラインの画像のサイズを小さく */
    .timeline-image {
        width: 120px;  /* 幅を小さく */
        height: 120px; /* 高さも小さく */
        top: 30px; /* ポイントの位置に合わせて調整 */
    }

    /*コンタクトフォーム*/
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .form-row .form-group {
        margin-bottom: 0;
    }

}
@media (max-width: 600px) {
    .services-grid {
        /* さらに狭い画面では1カラムにする */
        grid-template-columns: 1fr;
    }
}