/* 共通CSS*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-padding-top: 90px; /* ナビバーの高さに合わせて調整 */
}
body {
    font-family: "Kosugi Maru", sans-serif;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    letter-spacing: 0.05em;
}
h3 {
    color: #da778e;
    margin-bottom: 15px;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}
/* スクロール禁止用 */
body.no-scroll {
    overflow: hidden;
}
.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}
ul {
    list-style: none;
}
/* ヘッダーとナビゲーション */
header {
    background-color: #ffffff;
    width: 100%;
    position: fixed; /* 固定位置に変更 */
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease; /* スクロール時のアニメーション */
}
/* スクロール時にヘッダーを隠す */
header.hidden {
    transform: translateY(-100%);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}
.logo {
    width: 70px;
    height: auto;
    transition: all 0.3s ease; /* ロゴのhoverアニメーション用 */
}
.logo:hover {
    opacity: 0.8;
}
/* PC用のグローバルナビゲーション */
.gnavi {
    display: block; /* PCではデフォルトで表示 */
}
.gnavi__wrap {
    margin: 0 auto;
}
.gnavi__lists {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.gnavi__list {
    height: 60px;
    position: relative;
    transition: all .3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}
.gnavi__list:hover {
    background-color: #f0f0f0; /* ホバー時の背景色を追加 */
}
.gnavi__list a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 100%;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: all .3s;
    margin: 0 auto;
}
.gnavi__list:hover a {
    color: #007bff; /* ホバー時の文字色を追加 */
}
.gnavi__list:hover .dropdown__lists {
    transform: scaleY(1);
}
.dropdown__lists {
    transform: scaleY(0);
    transform-origin: center top;
    transition: all .3s;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 1001;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* ドロップダウンに影を追加 */
}
.dropdown__list {
    background-color: #fff;
    height: 60px;
    transition: all .3s;
    position: relative;
}
.dropdown__list:not(:first-child)::before{
    content: "";
    width: 80%; /* 区切り線の幅を調整 */
    height: 1px;
    background-color: #eee; /* 区切り線の色 */
    position: absolute;
    top: 0;
    left: 10%; /* 中央に配置 */
}
.dropdown__list:hover {
    background-color: #f8f8f8; /* ドロップダウンリストのホバー色 */
}
.dropdown__list a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333 !important;
    text-decoration: none;
    position: relative;
}
.dropdown__list a::before {
    content: '';
    display: none;
}
/* ヘッダー内のハンバーガーメニューアイコン (モバイル用) */
.hamburger-menu {
    display: none; /* PCではデフォルトで非表示 */
    cursor: pointer;
    width: 30px; /* ボタンのサイズ */
    height: 25px; /* ボタンのサイズ */
    position: relative;
    z-index: 1001;
    margin-left: 15px;
    display: flex; /* アイコンを中央に配置するために追加 */
    align-items: center; /* アイコンを中央に配置するために追加 */
    justify-content: center; /* アイコンを中央に配置するために追加 */
}
.hamburger-menu .hamburger-btn { /* ボタン自体のスタイルを調整 */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.hamburger-menu .fas.fa-bars { /* モバイルハンバーガーアイコンにサイズと色を適用 */
    font-size: 24px; /* アイコンのサイズ */
    color: #333; /* アイコンの色 */
    display: block; /* 余分なスペースをなくす */
}
/* スクロール時に表示されるフローティングハンバーガーメニュー (PC用) */
.floating-hamburger {
    position: fixed; /* 位置を固定 */
    bottom: 140px;    /* 下からの位置 */
    right: 80px;     /* 右からの位置 */
    width: 100px;     /* ボタン全体の幅 */
    height: 100px;    /* ボタン全体の高さ */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.floating-hamburger.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
/* フローティングハンバーガー内のアイコンを画像に変更 */
.floating-hamburger img {
    width: 100px; /* 画像のサイズ */
    height: 100px; /* 画像のサイズ */
    display: block;
}
/* ヘッダーナビゲーション (モバイル/ハンバーガーメニュー用) */
.header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 275px;
    background-color: rgba(255, 255, 255, 0.98);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    z-index: 1002;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    line-height: 1.5;
}
.header-nav.active {
    right: 0;
}
.header-nav ul {
    padding: 0;
}
.header-nav li {
    border-bottom: 1px solid #eee;
}
.header-nav li:last-child {
    border-bottom: none;
}
.header-nav a {
    display: block;
    padding: 15px 10px;
    color: #333;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.header-nav a:hover {
    background-color: #f0f0f0;
}
/* アコーディオンメニュー（モバイルナビ内） */
.accordion-menu {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 10px;
    font-size: 16px;
    background-color: transparent;
    border: none;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.accordion-menu .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    margin-left: 5px;
}
.accordion-menu.active .arrow {
    transform: rotate(180deg);
}
.accordion-content {
    display: none;
    padding-left: 15px;
    background-color: #f8f8f8;
    line-height: 1.5;
}
.accordion-content li {
    border-bottom: none;
}
.accordion-content li a {
    padding: 10px 10px;
    font-size: 14px;
}
/* メインコンテンツ */
main {
    flex: 1;
    margin-top: 120px; /* ヘッダーの高さ分だけ下げる */
}
/* ヒーローセクション */
.main-container {
    position: relative; /* h1 と p の position: absolute の基準 */
    width: 100%; /* 親要素の幅に合わせる */
    height: 400px; /* PCでの画像の表示領域の高さ。必要に応じて調整してください */
    overflow: hidden; /* この要素からはみ出す画像を隠す */
}
.main-container img {
    width: 100%; /* 親要素 (.main-container) の幅いっぱいに広がる */
    height: 100%; /* 親要素 (.main-container) の高さいっぱいに広がる */
    object-fit: cover; /* 画像のアスペクト比を保ちつつ、親要素を完全に覆うように拡大・縮小。
                            はみ出た部分は overflow: hidden; で隠れる。 */
    object-position: center; /* 画像の中心が、表示領域の中心に来るように配置 */
}
.main-container h1 {
    position: absolute;
    top: 30%; /* <h1>の位置を少し上に調整 */
    left: 50%;
    transform: translate(-50%, -50%); /* 中央配置 */
    max-width: 1200px;
    font-size: 2.5rem; /* PCでの基準フォントサイズ。適宜調整してください */
    letter-spacing: 0.08em;
    margin: 0 auto;
    padding: 16px; /* PCでのパディング。適宜調整してください */
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    text-shadow: 1px 1px 2px rgba(255, 0, 0, 0.7);
    line-height: 1.3;
    z-index: 2; /* pタグより前面に表示 */
}
/* 新しい p タグのスタイル */
.main-container .main-comment p { /* セレクタを .main-container .main-comment p に変更 */
    position: absolute;
    top: 60%; /* <h1>の下に配置するために調整 */
    left: 50%;
    transform: translate(-50%, -50%); /* 中央配置 */
    max-width: 1000px; /* <h1>より少し狭くするか、適宜調整 */
    font-family: "Zen Old Mincho", serif;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    line-height: 2;
    padding: 16px; /* <h1>と同じか、適宜調整 */
    margin: 0 auto;
    color: white; /* テキストを画像の上に重ねるので色を白に */
    text-align: center; /* 中央揃え */
    border-radius: 10px; /* 角を丸くする */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2; /* 画像より前面に表示 */
}
#main-title .main-comment span {
    background:linear-gradient(transparent 0%, #f8d3eb 100%);
}
/* コンテンツエリア */
.title {
    position: relative; /* 必要に応じて */
    max-width: 1200px; /* コンテンツの幅 */
    min-height: 80px; /* アイコンの高さやh2の行の高さに合わせて調整 */
    background-image: url('/portfolio/fuwamoco/img/icon.webp');
    background-repeat: no-repeat; /* アイコンが繰り返されないように */
    background-size: 45px; /* アイコンのサイズ */
    background-position: 10px 10px; /* 左から20px、垂直方向中央に配置 */
    display: flex; /* h2をフレックスアイテムとして扱いたい場合 */
    align-items: center; /* h2を垂直方向に中央揃え */
}
.title h2 {
    font-size: 28px;
    color: #d63384;
    letter-spacing: 0.08em;
    border-bottom: 2px solid #8bc34a;
    padding-left: 40px; /* アイコンの幅(45px) + スペース */
    padding-right: 20px; /* 右側の余白 */
    padding-top: 10px; /* 上のパディング */
    padding-bottom: 5px; /* 下のボーダーとの間隔も考慮 */
    margin-bottom: 40px;
}
.wrapper {
    margin: 80px 0 20px;
}
/* 種類セクション */
#breeds .cards-container {
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0 auto;
}
#breeds .rabbit-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#breeds .card-header h3 {
    background-color: #f8e8e8;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    color: #333;
}
#breeds .card-content {
    display: flex;
    flex-direction: column;
}
#breeds .rabbit-image {
    text-align: center;
    padding: 16px;
}
#breeds .rabbit-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.Features-list,
.personality-list {
    padding: 16px
}
.Features-list dt,
.personality-list dt {
    color: #4a6f8a;
    font-weight: bold;
}
#breeds .note {
    max-width: 1000px;
    display: flex;
    font-size: 15px;
    margin: 20px auto;
    padding: 16px;
    background-color: #f7f7f7;
    border-radius: 6px;
    border-left: 4px solid #f0c8d0;
    margin-bottom: 120px;
}
#breeds .note img {
    width: auto;
    height: 60px;
    margin-right: 10px;
}
#breeds .note p {
    align-items: center;
}
/*  魅力セクション */
#charm h3 {
    color: #f59eb3;
    font-size: 22px;
}
#charm .charm-wrapper {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}
#charm .charm-card {
    max-width: 1000px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px 16px 18px;
    margin: 0 auto 20px;
}
#charm .charm-card:last-child{
    margin-bottom: 120px;
}
#charm .charm-content {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #d63384;
}
#charm .charm-number {
    background-color: #f8d7da;
    color: #d63384;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}
#charm .charm-item {
    position: relative;
    padding: 8px 0 8px 16px;
    border-left: 2px solid #f8d7da;
    margin-bottom: 8px;
}
#charm .charm-item:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #f8d7da;
    border-radius: 50%;
    left: -5px;
    top: 16px;
}
/*  メリットセクション */
#merit .merit-wrapper {
    display: flex;
    align-items: center;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#merit .merit-category {
    padding: 16px;
    margin-bottom: 20px;
}
#merit h3 {
    font-size: 22px;
    color: #f59eb3;
    margin-bottom: 15px;
    padding-bottom: 8px;
}
#merit dl.merit-list {
    margin: 0;
    padding: 0;
}
#merit dl.merit-list dt {
    margin-bottom: 10px;
}
#merit dl.merit-list dd {
    margin-left: 0;
    margin-bottom: 20px;
}
#merit dl.merit-list dd p {
    margin: 0;
    padding-left: 39px; /* 24px(icon) + 15px(margin) */
}
#merit .marit-content {
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 120px;
}
#merit .merit-category1 {
    margin-bottom: 20px;
}
#merit .merit-category1 img {
    width: 100px;
    height: auto;
    text-align: center;
    align-items: flex-end;
    padding-left: 10px;
    margin-top: 470px;
}
#merit .merit-category2 {
    margin: 25px 0 20px;
}
#merit .merit-category2 img {
    width: 120px;
    height: auto;
    text-align: center;
    align-items: flex-end;
    padding-left: 10px;
    margin-top: 200px;
}
#merit .point-icon {
    display: flex;
    align-items: center;
}
#merit .point-icon::before {
    content: "✓";
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: #f0c8d0;
    border-radius: 50%;
    margin-right: 15px;
    color: white;
    font-size: 14px;
}
#merit .point-icon::before {
    content: "✓";
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: #f0c8d0;
    border-radius: 50%;
    margin-right: 15px;
    color: white;
    font-size: 14px;
}
#merit .point-icon h4 {
    font-size: 18px;
    color: #4a6f8a;
    margin: 0;
    font-weight: bold;
}
#merit .note {
    display: flex;
    font-size: 15px;
    margin: 20px 0;
    padding: 16px;
    background-color: #f7f7f7;
    border-radius: 6px;
    border-left: 4px solid #f0c8d0;
}
#merit .note img {
    width: auto;
    height: 60px;
}
#merit .note p {
    align-items: center;
}
/* フッター */
.footer-wrapper {
    background-color: #dafac8;
    display: flex;
    justify-content: center;
    padding: 50px 0;
    margin-top: 120px;
}
.footer-content {
    text-align: center;
}
.footer-logo img {
    height: 100px;
    width: auto;
}
/* ソーシャルメディアリンク */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: #dafac8;
    color: #333;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background-color: #87CEEB;
    color: white;
    transform: translateY(-3px);
}
.copyright {
    text-align: center;
    padding: 16px 0;
    background-color: #fff;
    color: #000;
    font-size: 14px;
    margin: 0;
}
/* タブレット表示の設定（1024px以下） */
@media (max-width: 1024px) {
    .header-container {
        margin: 15px 0;
    }
    .logo {
        width: 50px;
    }
    .gnavi {
        display: none;
    }
    .hamburger-menu {
        display: flex; /* flexboxでアイコン配置を中央に */
        margin-left: auto;
    }
    .floating-hamburger {
        display: none; /* モバイルでは非表示 */
    }
    main {
        margin-top: 80px;
    }
    #main-title .maining {

        background-size: cover;
        background-position: 7% 50%;
        height: 70vh; 
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }
    #main-title .main-title {
        max-width: 1200px;
        color: white;
        text-align: center;
        padding: 0 4%;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        text-shadow: 1px 1px 2px rgba(255, 0, 0, 0.7);
        margin: 200px auto 0;
        line-height: 1.5;
    }
    #main-title .main-title h1 {
        max-width: 1200px;
        font-size: 2.6rem;
        margin: 0 auto;
    }
    #main-title .main-comment p {
        max-width: 1200px;
        font-size: 1.2rem;
        padding: 20px 4%;
        margin: 0 auto;
    }
    #breeds .cards-container {
        grid-template-columns: repeat(2, 1fr); 
    }
    #merit .title h2 {
        color: #d63384;
        font-size: 28px;
        margin-top: 10px;
        margin-bottom: 10px;
        border-bottom: 2px solid #8bc34a;
    }
}
/* モバイル表示の設定（767px以下） */
@media (max-width: 767px) {
    .header-container {
        margin: 10px 0;
    }
    .logo {
        width: 45px;
    }
    .header-nav {
        width: 80%;
    }
    main {
        margin-top: 70px;
    }
    .main-container {
        height: 300px; /* モバイルでの画像の表示領域の高さ。PCより短くすることが多い */
        /* overflow: hidden; はPC側で設定済みなので不要 */
    }
    .main-container img {
        /* width: 100%; と height: 100%; はPC側で設定済みなので変更なければ不要 */
        /* object-fit: cover; もPC側で設定済みなので変更なければ不要 */

        /* ★★ ここでモバイルで表示したい画像の部分を調整します ★★ */
        /* 例1: 画像の上部を表示したい場合 */

        /* 例2: 画像の下部を表示したい場合 */
        /* object-position: bottom; */

        /* 例3: 画像の左上を表示したい場合 */
        /* object-position: left top; */

        /* 例4: 画像の特定の位置（例: x軸50%, y軸20%）を表示したい場合 */
        /* object-position: 50% 20%; */
        object-position: 55% 50%;
    }
    /* モバイルでの h1 のスタイル調整 */
    .main-container h1 {
        font-size: 1.2rem; /* モバイルでの文字サイズを小さく。適宜調整してください */
        padding: 12px; /* モバイルでのパディング調整。適宜調整してください */
        /* top, left, transform は親要素の高さが変わっても中央を維持するので、変更不要 */
    }
    #main-title .main-comment p {
    font-size: 1rem;
    padding: 20px 4%;
    text-align: center;
    }
    #breeds .cards-container {
        grid-template-columns: 1fr;; 
    }
    #merit .merit-category1 img {
    display: none;
    }
    #merit .merit-category2 img {
    display: none;
    }
}