/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'CustomFont';
    src: url('fonts/custom-font.woff2') format('woff2');
    font-display: swap; /* ✅ 追加 */
  }

body {
    font-family:sans-serif;
    line-height: 1.5;
    color: #333;
    overflow-x: hidden;
    background-size: cover;
    margin:0;
    padding:0;
    
}

/* ハンバーガーメニュー */
.hamburger-menu {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    position: relative; /* 必須 */
    z-index: 101;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000000;
    transition: 0.3s;
}
/* メニュー全体 */
.menu {
    position: fixed;
    top: 0;
    right: -250px; /* メニューを右に隠す */
    width: 250px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: -3px 0 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* メニュー項目のスタイル */
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu ul li {
    margin: 1rem 0;
}

.menu ul li a {
    text-decoration: none;
    color: #000000;
    font-size: 1.5rem;
    font-weight: bold;
}

.menu ul li a:hover {
    color: #005f99;
}

.menu.open {
    right: 0;
}
/* アイコンが「×」になるアニメーション */
.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0; /* 真ん中の線を非表示 */
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* メインビジュアル */
.main-visual {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}




/* ビジュアルテキスト部分のスタイル */
.visual-text {
    background: rgba(255, 255, 255, 0.7); /* 半透明の白背景 */
    color: #333; /* テキストをダークグレーに変更 */
    padding: 2rem 3rem; /* 内側の余白を広めに設定 */
    border-radius: 10px; /* 角を少し丸めて柔らかい印象に */
    text-align: center; /* テキストを中央揃え */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* ソフトな影を追加 */
    max-width: 600px; /* 最大幅を設定してバランスを調整 */
    margin: 0 auto; /* 中央揃え */
}

/* 見出し (h1) のスタイル */
.visual-text h1 {
    font-size: 2.5rem; /* 少し大きめで目立つフォントサイズ */
    margin-bottom: 1rem; /* 見出しの下に適度な余白を追加 */
    font-weight: bold; /* 太字で強調 */
    color: #222; /* 見出しは少し濃い色で視認性を向上 */
    line-height: 1.3; /* 読みやすい行間 */
}

h2 {
    font-size: 2.5rem;  /* h1 と同じサイズに設定 */
    font-weight: bold;  /* h1 のスタイルを維持 */
    color: #222;        /* 視認性を向上 */
    line-height: 1.3;   /* 読みやすい行間 */
    margin-bottom: 1rem; /* 適度な余白を追加 */
}

h3{
    font-size: 24px;
}

/* サブテキスト (p) のスタイル */
.visual-text p {
    font-size: 1.2rem; /* 少し控えめなフォントサイズ */
    margin-top: 1rem; /* テキストと見出しの間に余白を追加 */
    line-height: 1.6; /* 読みやすい行間 */
    color: #444; /* サブテキストは中間的な濃さのダークグレー */
    text-wrap: balance;
}

/* ロゴのスタイル */
.visual-text .logo {
    display: block;
    margin: 0 auto 1rem auto; /* 中央揃えと下に余白を追加 */
    width: 120px; /* ロゴのサイズを控えめに調整 */
    height: auto; /* アスペクト比を維持 */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); /* ロゴに影を追加して柔らかい印象 */
}
.seo-title {
    font-size: 18px !important; /* 少し大きくして可読性を向上 */
    color: #555 !important; /* 少し濃いグレーで視認性アップ */
    text-align: center !important;
    font-weight: normal !important;
    display: block !important;
    line-height: 1.5 !important; /* 行間を適度に確保 */
}


.aligned-text {
    max-width: 600px;  /* 読みやすい幅に制限 */
    margin: 20px auto; /* 全体を中央配置 */
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center; /* しっかり中央配置 */
}

/* ブランド紹介（記事） */
.brand-section {
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #a4ffa4, #c6ffc6, #ffffff); /* より柔らかいグラデーション */
}

.brand-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* ブランド紹介の説明文（h2の下のp）の調整 */
.brand-section p {
    font-size: 1.2rem;  /* 読みやすくするためにサイズアップ */
    margin-bottom: 2rem; /* 下に余白を追加し、ブランドメニューと間隔を確保 */
    text-align: center;  /* 中央配置 */
    line-height: 1.6;   /* 行間を広げて視認性向上 */
    text-wrap: balance;
}

.brand-articles {
    display: flex;
    justify-content: center; /* 要素を中央揃えに変更 */
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding: 0 1rem;
}

.brand-article {
    text-align: center;
}

.brand-article p {
    text-wrap: balance;
}


.circle {
    width: 350px; /* 円の幅を拡大 */
    height: 350px; /* 円の高さを拡大 */
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle:hover {
    transform: translateY(-10px); /* 浮き上がるような効果 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* 影を強調 */
}

.circle a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.brand-article h3 {
    font-size: 1.5rem;
    color: #333;
}

/* ✅ [修正] ブランドメニューのタイトル（h3より明確に大きく） */
.menu-title {
    font-size: 2.2rem !important; /* h3より明確に大きく */
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 0.75rem; /* ✅ [修正] h3との間隔を少し狭める */
    display: block !important;
}

/* h3のフォントサイズを小さめに */
h3 {
    font-size: 1.3rem !important; /* 説明文（p）とバランスを取る */
    font-weight: bold;
    color: #444;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0.5rem; /* pタグとの余白 */
}

/* 説明文（p） */
.brand-article p {
    font-size: 1.1rem;  /* h3より少し小さい */
    color: #555;
    line-height: 1.6;
    text-align: center;
}
/* ✅ [修正] h3の改行バランス調整 */
.brand-article h3 {
    font-size: 1.3rem !important;
    font-weight: bold;
    color: #444;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1rem; /* ✅ [修正] 説明文との間隔を広げる */
    max-width: 320px; /* PCで均等に2行に収まるよう調整 */
    text-wrap: balance;
    word-break: keep-all;
    display: inline-block;
}

/* PC向け：h3を2行で整える */
@media (min-width: 1024px) {
    .brand-article h3 {
        max-width: 320px; /* より均等に2行に収める */
        text-align: center;
    }
}

/* ✅ [修正] スマホ向けのh3の折り返し調整 */
@media (max-width: 768px) {
    .brand-article h3 {
        max-width: 100%;
        min-width: 250px; /* ✅ [追加] ある程度の折り返しを統一 */
        text-align: center;
    }
}



/* お問い合わせリンク */
.contact-link {
    display: block;
    margin: 2rem auto;
    width: 80%;
    max-width: 600px; /* 横幅の最大値 */
    padding: 2rem; /* 高さを調整 */
    text-align: center;
    font-size: 2rem; /* フォントサイズを大きく */
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #007bff, #00d4ff); /* グラデーションカラー */
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-10px); /* 浮き上がるような効果 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* ホバー時の影を追加 */
}

/* フッター内のロゴと会社名 */
.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url(../img/logo.png) no-repeat center center; /* ロゴ画像を設定 */
    background-size: contain; /* 画像を適切に収める */
}

.footer-company-name {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
}
.footer-company-name a{
    text-decoration: none;
}

/* SNSリンク */
.footer-sns-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-sns-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url(../img/LINE_Brand_icon.png) no-repeat center center; /* LINEロゴ画像を設定 */
    background-size: contain; /* 画像を適切に収める */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.footer-sns-link:hover {
    background-color: #aaa;
}
.footer-sns-link.line {
    background: url(../img/LINE_Brand_icon.png) no-repeat center center;
    background-size: contain; /* LINEロゴを設定 */
}

.footer-sns-link.instagram {
    background: url(../img/Instagram_Glyph_Gradient.png) no-repeat center center;
    background-size: contain; /* Instagramロゴを設定 */
}
.footer-copy {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 2rem;
    padding: 1rem 0;
    background-color: #f9f9f9;
}
/* フッターの連絡先情報 */
.footer-contact-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.footer-contact-info a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #0056b3;
}


/* =========================
   1. レスポンシブ対応
   ========================= */

/* タブレットサイズ以下のスタイル */
@media (max-width: 1024px) {
    .brand-articles {
        flex-wrap: wrap;
        justify-content: center;
    }
    .circle {
        width: 300px;
        height: 300px;
    }
}

/* スマホサイズのスタイル */
@media (max-width: 768px) {
    .hamburger-menu {
        top: 1rem;
        right: 1rem;
    }

    /* メニュー全体 */
    .menu {
        width: 100%;
        right: -100%;
    }
    .menu.open {
        right: 0;
    }
    .menu ul {
        padding: 2rem;
    }

    /* メインビジュアルのテキスト */
    .visual-text {
        width: 90%;
        padding: 1.5rem;
    }
    .visual-text h1 {
        font-size: 2rem;
    }
    .visual-text p {
        font-size: 1rem;
    }
    .seo-title {
        font-size: 16px !important; /* スマホでは少し小さめ */
    }

    .aligned-text {
        font-size: 1rem; /* スマホで読みやすく */
        line-height: 1.6;
    }

    /* ブランドメニューの画像 */
    .brand-articles {
        flex-direction: column;
        align-items: center;
    }
    .circle {
        width: 250px;
        height: 250px;
    }

    /* お問い合わせリンク */
    .contact-link {
        width: 90%;
        font-size: 1.5rem;
    }

    /* フッター */
    .footer-logo-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-sns-links {
        flex-direction: row; /* スマホでも横並びを維持 */
    }
}

/* SNSリンクの中央配置（横並び） */
.footer-sns-links {
    display: flex !important; /* 強制的にflex適用 */
    justify-content: center; /* 横方向の中央配置 */
    align-items: center; /* 縦方向の中央配置 */
    gap: 20px; /* アイコン間の間隔 */
    width: 100%; /* 親要素の幅を100%に */
    margin: 2rem auto; /* 上下の余白 */
    flex-wrap: nowrap; /* アイコンが折り返さないようにする */
}

/* アイコンの共通設定 */
.footer-sns-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex; /* アイコン内の要素を中央揃え */
    justify-content: center;
    align-items: center;
}

/* LINEアイコン */
.footer-sns-link.line {
    background-image: url('../img/LINE_Brand_icon.png');
}

/* Instagramアイコン 
.footer-sns-link.instagram {
    background-image: url('../img/Instagram_Glyph_Gradient.png');
}*/

/* ホバー時の効果 */
.footer-sns-link:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.flyer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
  }
  
  .flyer-item img {
    max-width: 250px;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s ease;
  }
  
  .flyer-item img:hover {
    transform: scale(1.05);
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding-top: 40px;
  }
  
  .modal-content {
    margin: auto;
    display: block;
    max-width: 95vw;   /* 幅を画面の95%まで広げる */
    max-height: 95vh;  /* 高さも画面の95%まで広げる */
    width: auto;
    height: auto;
  }
  
  
  .close {
    position: absolute;
    top: 20px; right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

  .modal-content.zoomed {
    transform: scale(1.5);
    transition: transform 0.3s ease;
    transform-origin: top center; /* ← ここを追加！ */
    cursor: zoom-out;
  }
  
  .modal-content {
    transition: transform 0.3s ease;
    cursor: zoom-in;
  }
  
  body.modal-open {
    overflow: hidden;
  }
  
  /* お問い合わせページのヒーローセクション */
.contact-hero {
    background-color: #f0f8ff;
    padding: 3rem 1rem;
    text-align: center;
  }
  
  .contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
  }
  
  .contact-hero p {
    font-size: 1.2rem;
    color: #555;
  }
  
  /* フォーム全体のラッパー */
  .contact-form-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
  }
  
  .contact-form-wrapper {
    background-color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
  }
  
  /* Contact Form 7 の各要素に調整 */
  .wpcf7-form label {
    display: block;
    margin-bottom: 1.2rem;
    font-weight: bold;
    color: #333;
  }
  
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form textarea,
  .wpcf7-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
  }
  
  .wpcf7-form input:focus,
  .wpcf7-form textarea:focus,
  .wpcf7-form select:focus {
    border-color: #007bff;
    outline: none;
  }
  
  .wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  .wpcf7-form input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease;
  }
  
  .wpcf7-form input[type="submit"]:hover {
    background-color: #0056b3;
  }
  
  .company-intro {
    background: url('../img/washi-bg.png') no-repeat center center;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    margin: 3rem auto;
    border-radius: 12px;
    max-width: 980px;
    color: #333;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 460px;
  }
  
  
  .company-intro h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: #222;
    font-weight: 600;
    padding-left: 0.5rem;
    
  }
  
  .company-intro p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.85;
    margin: 0;
    max-width: 430px;
  }
  