/* ==========================================================================
   undoudou デザインカスタマイズ (決定版・統合版)
   Wixサイト(旧undoudou.shop)のトンマナを移植したもの。
   EC-CUBE標準クラス(.ec-*)を上書きするだけで、header.twig/footer.twig等の
   構造・カート/ログイン機能には一切手を入れていません。
   配色: ボルドー(#B04A6D)をアクセントに、本文・見出しは黒〜濃いグレー、
   ブラウン系は不使用。
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --undoudou-bg: #f9f6f5;          /* 全体の背景(オフホワイト) */
  --undoudou-blush: #e6d8d7;       /* 差し色1: 淡いピンク(ボルドーの薄め) */
  --undoudou-gray: #6b6b6b;        /* 差し色2: ラベル等の補助テキスト用グレー */
  --undoudou-accent: #B04A6D;      /* アクセント: ボルドー(ボタン・ホバー・価格・リンク) */
  --undoudou-accent-dark: #8a3a56; /* アクセントのホバー用濃色 */
  --undoudou-dark: #262626;        /* 見出し・濃いテキスト(黒に近いグレー) */
  --undoudou-text: #191919;        /* 本文テキスト */
  --font-heading: 'Playfair Display', serif;
  /* OS標準フォントのみで構成(Webフォントの読み込み不要) */
  --font-body: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", 游ゴシック, "Yu Gothic Medium", YuGothic, メイリオ, Meiryo, sans-serif;
}

body {
  background-color: var(--undoudou-bg);
  color: var(--undoudou-text);
  font-family: var(--font-body);
  font-size:1.0rem;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.ec-headerRole {
  background-color: #fff;
}

/* ロゴ文字。EC-CUBE標準の .ec-headerTitle .ec-headerTitle__title a の方が
   詳細度が高く、!important無しだと標準の40pxに負けるため付与している */
.ec-headerTitle .ec-headerTitle__title a {
  font-family: var(--font-heading) !important;
  font-style: italic !important;
  font-size: 28px !important;
  letter-spacing: 0.05em !important;
  color: var(--undoudou-dark) !important;
}

.ec-headerNaviRole {
  background-color: #fff;
}

.ec-headerNaviRole__right .ec-headerRole__cart .fa-shopping-cart,
.ec-headerNaviRole__right a {
  color: var(--undoudou-accent);
}

/* ---------- カテゴリナビ(ヘッダー下のメニュー行) ----------
   EC-CUBE標準の .ec-itemNav__nav は縦積みドロワー用のCSSがベースになっており、
   横並びの綺麗なメニューに上書きしている。font-size/paddingは標準CSSとの
   詳細度勝負に確実に勝つよう !important を付与。 */
.ec-categoryNaviRole {
  background-color: #fff;
  padding: 16px 0;
}

.ec-itemNav__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 32px;
}

.ec-itemNav__nav li {
  width: auto;
  flex: 0 0 auto;
}

.ec-categoryNaviRole .ec-itemNav__nav li a {
    display: inline-block;
    background: transparent;
    border-bottom: none;
    padding: 8px 5px 8px 5px !important;
    color: var(--undoudou-dark);
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 14px !important;
    letter-spacing: 0.05em;
    width: 100%;
    text-align: center;
}

.ec-itemNav__nav > li:hover > a {
  background: transparent;
  color: var(--undoudou-accent-dark);
}

/* サブカテゴリ(入れ子)のドロップダウンも白背景ではなくブランド色に */
.ec-itemNav__nav li ul{
    min-width: 160px !important;
}
.ec-itemNav__nav li ul li a {
  background: var(--undoudou-dark);
  color: #fff;
}

.ec-itemNav__nav li:hover li:hover > a {
  background: var(--undoudou-accent);
}

/* ==========================================================================
   フッター
   ========================================================================== */

.ec-footerRole {
  background-color: #8a6a75;
  margin-top: 0 !important;
}

.ec-footerTitle{
    padding: 10px 0 30px !important;
}

.ec-footerNavi__link a {
  color: var(--undoudou-blush);
}

.ec-footerNavi__link a:hover {
  color: #fff;
}

.ec-footerTitle__logo a {
  font-family: var(--font-heading);
  font-style: italic;
  color: #fff;
}

.ec-footerTitle__copyright {
  color: #fff;
}

.ec-blockTopBtn{
    width: 140px !important;
    color: #8a3a56 !important;
    background-color: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.6);
}

.ec-footerNavi .ec-footerNavi__link a{
    text-decoration: none !important;
}

.ec-footerTitle .ec-footerTitle__copyright{
    font-weight: 200 !important;
    letter-spacing: 0.08rem !important;
}
/* ==========================================================================
   見出し・ボタン 共通
   ========================================================================== */

.ec-role h2,
.undoudou-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--undoudou-dark);
  font-size: 1.0rem;
  margin-bottom: 20px;
  display: block;
}

.btn-ec-conversion,
.ec-blockBtn--action,
.ec-inlineBtn--action {
  background-color: var(--undoudou-accent) !important;
  border-color: var(--undoudou-accent) !important;
}

.btn-ec-conversion:hover,
.ec-blockBtn--action:hover {
  background-color: var(--undoudou-accent-dark) !important;
  border-color: var(--undoudou-accent-dark) !important;
}

/* ==========================================================================
   トップページ: ヒーロー / ブランドストーリー / LINE注文CTA
   (app/template/default/index.twig で追加したセクション用)
   ========================================================================== */

.undoudou-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 980 / 538;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/undoudou/hero_sewing.jpg') center/cover no-repeat;
}
.undoudou-hero.foot{
    background: url('../img/undoudou/texture_tape.webp') center/cover no-repeat;
}
.eapps-instagram-feed-container::after{
    content: "";
    background: #ffffff;
    background-size: 230px;
    position: absolute;
    height: 37px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 100;
    bottom: 5px;
    width: 230px;
}
.eapps-widget-toolbar-panel-wrapper{
    display: none;
}
#eapps-instagram-feed-1{
    width: 94% !important;
    max-width: 94% !important;
    margin: 40px auto 0 !important;
}

.undoudou-hero__inner {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 30px 60px;
  border-radius: 4px;
  color: var(--undoudou-dark);
}

.undoudou-hero__inner h2 {
  font-family: var(--font-heading);
  letter-spacing: 0.14rem;
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--undoudou-dark);
}

.undoudou-hero__inner p {
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--undoudou-dark);
}

/* 「組み合わせを考える」ボタン。ホバーも含めてボルドー系で統一 */
.undoudou-hero__btn {
  display: inline-block;
  padding: 20px 36px !important;
  background-color: #F9E0DC;
  color: #222 !important;
  border: 1px solid #222;
  text-decoration: none;
  border-radius: 2px;
  letter-spacing: 0.1em;
  transition: background-color .2s;
  min-width: 300px;
  border-radius: 30px;
  transition: all 0.3s ease !important;
}

.undoudou-hero__btn:hover {
  background-color: #FDC8C0;
}

@media (max-width: 767px) {
  .undoudou-hero {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
  .undoudou-hero__inner {
    padding: 20px 24px;
  }
  .undoudou-hero__inner h2 {
    font-size: 26px;
  }
}

.undoudou-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.undoudou-section__label {
  font-family: var(--font-heading);
  font-size: 32px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.undoudou-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.undoudou-story {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.undoudou-story__photo {
  flex: 1 1 320px;
}

.undoudou-story__photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.undoudou-story__text {
  flex: 1 1 320px;
  text-align: center;
}

.undoudou-story__text p {
  line-height: 2;
  margin-bottom: 1.4em;
  color: var(--undoudou-text);
}

.undoudou-line-cta {
  background-color: var(--undoudou-blush);
  text-align: center;
  padding: 60px 20px 30px;
}

.undoudou-line-cta p {
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto 24px;
}
.undoudou-line-cont{
    display: flex;
    width: 70%;
    margin: auto;
    padding-top: 20px;
}
.undoudou-line-cont p{
    width: 50%;
    text-align: center;
}
.undoudou-line-cont div{
    width: 50%;
    text-align: center;
}
.undoudou-line-cta__btn {
  display: inline-block;
  text-decoration: none;
  width: 80%;
  margin-bottom: 10px;
}

.undoudou-line-cta__btn img{
    width: 100%;
}
.undoudou-line-link{
    color: #1c992d;
}

@media (max-width: 767px) {
  .undoudou-story {
    padding: 40px 20px;
  }
}

/* ==========================================================================
   商品一覧・商品詳細ページ
   ========================================================================== */

.ec-searchnavRole {
  border-bottom: 1px solid var(--undoudou-blush);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.ec-topicpath__item a {
  color: var(--undoudou-accent);
}

.ec-topicpath__item--active {
  color: var(--undoudou-dark);
  font-weight: 600;
}

.ec-shelfRole {
  padding-top: 10px;
}

.ec-shelfGrid__item {
  background-color: #fff;
  border: 1px solid var(--undoudou-blush);
  border-radius: 4px;
  padding: 12px;
  transition: box-shadow .2s;
}

.ec-shelfGrid__item:hover {
  box-shadow: 0 4px 14px rgba(176, 74, 109, 0.18);
}

.ec-shelfGrid__item a p {
  color: var(--undoudou-text);
  font-family: var(--font-body);
}

.ec-shelfGrid__item .price02-default {
  color: var(--undoudou-accent);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 18px;
}

.ec-productRole__actions .ec-select select,
.ec-numberInput input {
  border: 1px solid var(--undoudou-blush);
  border-radius: 2px;
}

.ec-productRole__title .ec-headingTitle {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--undoudou-dark);
  font-size: 26px;
}

.ec-productRole__tag {
  background-color: var(--undoudou-blush);
  color: var(--undoudou-dark);
  border-radius: 12px;
  padding: 2px 12px;
  font-size: 12px;
}

.ec-productRole__price .ec-price__price,
.price02-default {
  color: var(--undoudou-accent);
  font-family: var(--font-heading);
  font-weight: 600;
}

.ec-productRole__code,
.ec-productRole__category {
  color: var(--undoudou-gray);
  font-size: 13px;
}

.ec-productRole__category a {
  color: var(--undoudou-accent);
}

.item_nav .slideThumb {
  border: 2px solid transparent;
}

.item_nav .slideThumb.slick-current {
  border-color: var(--undoudou-accent);
}

.ec-pagerRole .ec-pager li.active a,
.ec-pagerRole .ec-pager li a:hover {
  background-color: var(--undoudou-accent);
  color: #fff;
  border-color: var(--undoudou-accent);
}

/* ==========================================================================
   price list セクション (トップページ下部、既存HTMLにスタイルを付与)
   ========================================================================== */

.pricelist-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.pricelist-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricelist-title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--undoudou-dark);
  margin-bottom: 20px;
  font-size: 2rem;
  letter-spacing: 0.1rem;
}

.pricelist-note {
  font-size: 15px;
  line-height: 1.8;
}

.pricelist-item_wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.pricelist-item {
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricelist-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pricelist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pricelist-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricelist-en {
  font-family: var(--font-heading);
  color: var(--undoudou-gray);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.pricelist-name {
  font-family: var(--font-heading);
  color: var(--undoudou-dark);
  font-size: 22px;
  margin: 4px 0 6px;
}

.pricelist-sub {
  color: #777;
  font-size: 12px;
  margin-bottom: 14px;
}

.pricelist-prices {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.pricelist-prices li {
  font-size: 14px;
  color: var(--undoudou-text);
  padding: 6px 0;
  border-bottom: 1px dashed var(--undoudou-blush);
  line-height: 1.5;
}

.pricelist-prices li:last-child {
  border-bottom: none;
}

.pricelist-prices .popular {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background-color: var(--undoudou-accent);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  vertical-align: middle;
}

.pricelist-option-title {
  font-family: var(--font-heading);
  color: var(--undoudou-gray);
  font-size: 13px;
  margin: 4px 0 4px;
}

.pricelist-options li {
  font-size: 13px;
  color: #666;
}

.pricelist-note-small {
  font-size: 11px;
  color: #999;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .pricelist-item_wrap {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pricelist-title {
    font-size: 26px;
  }
}

/* ==========================================================================
   How to order セクション (ブロック管理で新規作成したブロック用)
   3列×2段のカードレイアウト。背景・カード色は price list セクションに合わせている。
   ========================================================================== */

.howtoorder-section {
  max-width: 1100px;
  margin: 0 auto;
  background: #f9f7f7;
  padding: 60px 20px 80px;
}

.howtoorder-header {
  text-align: center;
  margin-bottom: 40px;
}

.howtoorder-title {
  font-family: var(--font-heading);
  font-size: 32px;
  letter-spacing: 0.1rem;
  color: var(--undoudou-dark);
}

.howtoorder-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.howtoorder-step {
  text-align: center;
  background-color: #fff;
  border-radius: 6px;
  padding: 28px 20px;
}

/* 円の中に "step" と数字を両方収める塗りつぶしバッジ */
.howtoorder-step__num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: #e49fae;
  color: #fff;
  font-size: 23px;
  line-height: 1.1;
}

.howtoorder-step__num em {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 1px;
}

/* ステップの日本語タイトルはゴシック(本文フォント) */
.howtoorder-step__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  color: var(--undoudou-dark);
  margin-bottom: 15px;
}

.howtoorder-step__desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--undoudou-text);
}

.howtoorder-step__desc a {
  color: var(--undoudou-accent);
}

.howtoorder-step__links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 2;
}

.howtoorder-step__links a {
  color: var(--undoudou-accent);
}

.howtoorder-step__hint {
  color: var(--undoudou-gray);
  font-size: 11px;
}

.howtoorder-step__note {
  color: var(--undoudou-gray);
  font-size: 12px;
  margin-top: 10px;
}

/* テキストテンプレートのカード(6枠目) */
.howtoorder-step--template {
  display: flex;
  flex-direction: column;
}

.howtoorder-template__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--undoudou-dark);
  margin-bottom: 4px;
}

.howtoorder-template__sub {
  font-size: 12px;
  color: var(--undoudou-gray);
  margin-bottom: 16px;
}

.howtoorder-template__box {
  width: 100%;
  resize: none;
  border: 1px solid var(--undoudou-blush);
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--undoudou-text);
  background-color: var(--undoudou-bg);
  font-family: var(--font-body);
  margin-bottom: 14px;
}

.howtoorder-template__copyBtn {
  display: inline-block;
  align-self: center;
  padding: 8px 24px;
  background-color: #fff;
  border: 1px solid var(--undoudou-accent);
  color: var(--undoudou-accent);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.howtoorder-template__copyBtn:hover {
  background-color: var(--undoudou-accent);
  color: #fff;
}

@media (max-width: 900px) {
  .howtoorder-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .howtoorder-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ここから追加 */
/* ナビゲーション基本表示 */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  margin-right: 20px;
}

.nav-item a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

/* --------------------------------------------------
   ドロップダウン（ふわっとアニメーション設定）
-------------------------------------------------- */
.dropdown-menu,
.subdropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  min-width: 180px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
  border-radius: 0 !important;

  /* ★ふわっと表示するための設定 */
  opacity: 0;                   /* 非表示時は透明 */
  visibility: hidden;           /* クリック等を効かなくする */
  transform: translateY(10px);   /* 少し下にずらしておく */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; /* 0.3秒かけて変化 */
}

/* ホバー時に「透明度1」「元の位置」に戻して表示 */
.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --------------------------------------------------
   ドロップダウン第2階層（横に展開）
-------------------------------------------------- */
.dropdown-menu .has-subdropdown {
  position: relative;
}

.dropdown-menu .subdropdown-menu {
  top: 0;
  left: 100%;                  /* 右側に展開 */
  transform: translateX(-10px); /* 第2階層は少し左からスライド */
}

/* 第2階層のホバー表示 */
.has-subdropdown:hover > .subdropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.has-subdropdown a:hover {
    background-color: #f8eeed !important;
    color: #222222 !important;
}


/* ここから */
/* グリッドレイアウトの設定（全体コンテナ） */
.tape-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列並べる */
  gap: 24px; /* カード同士の間隔 */
  max-width: 960px; /* 全体の最大幅 */
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* 各カードのスタイリング */
.tape-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 画像の設定 */
.tape-card-image {
  width: 100%;
  max-width: 280px;
  margin-bottom: 16px;
}

.tape-card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

/* タイトル・説明文 */
.tape-card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333333;
}

.tape-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 16px;
  text-align: left; /* 文章部分は左揃えで読みやすく */
  width: 100%;
}

/* オススメ箇条書きエリア */
.tape-card-recommend {
  font-size: 0.85rem;
  text-align: left;
  width: 100%;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  box-sizing: border-box;
}

.tape-card-recommend strong {
  display: block;
  margin-bottom: 6px;
  color: #333333;
}

.tape-card-recommend ul {
  margin: 0;
  padding-left: 18px;
  color: #666666;
}

.tape-card-recommend li {
  margin-bottom: 4px;
}

/* ボタンのデザイン（中央配置・枠線スタイル） */
.tape-card-btn {
  display: inline-block;
  width: 80%;
  max-width: 240px;
  padding: 10px 16px;
  border: 1px solid #333333;
  background-color: #ffffff;
  color: #333333;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: auto; /* カードの下部に配置を統一 */
}

.tape-card-btn:hover {
  background-color: #333333;
  color: #ffffff;
}

/* スマホ表示（768px以下）の場合は1列にする */
@media (max-width: 768px) {
  .tape-grid-container {
    grid-template-columns: 1fr; /* 1列に変更 */
    gap: 16px;
    padding: 12px;
  }
}


/* カードや見出しの微調整 */
.style-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.style-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.tape-guide h4 {
  color: #333;
}

/* ボタン色をブランドカラーに合わせる場合 */
.btn-outline-primary {
  color: #333;
  border-color: #F9E0DC;
  background-color: #fff;
}

.btn-outline-primary:hover {
  background-color: #F9E0DC;
  border-color: #F9E0DC;
  color: #333;
}


/* ここからポップアップ */
/* =========================================
   テープ選択（2択）レイアウト
========================================= */

.tape-select-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
}

.select-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333333;
  margin-bottom: 8px;
}

.select-subtitle {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 32px;
}

/* 2列グリッドの設定 */
.select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 選択カード（リンク） */
.select-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 2px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.select-card:hover {
  border-color: #333333; /* ホバー時に枠線を濃く */
  transform: translateY(-5px); /* ホバー時に浮き上がる */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 画像スタイル */
.select-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.select-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.select-card:hover .select-card-image img {
  transform: scale(1.05); /* ホバー時に少し画像を拡大 */
}

/* 内容テキストエリア */
.select-card-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333333;
  margin: 0 0 12px 0;
}

.card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #666666;
  margin: 0 0 20px 0;
}

/* ボタン風デザイン */
.card-btn {
  margin-top: auto;
  display: inline-block;
  padding: 10px 24px;
  background-color: #333333;
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.select-card:hover .card-btn {
  background-color: #555555;
}

/* スマホ表示（768px以下）は1列 */
@media (max-width: 768px) {
  .select-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .select-card-image {
    height: 160px;
  }
}

/* モーダル全体の設定 */
.undoudou-modal__content {
  background-color: #fdfbf7;
  border-radius: 16px;
  border: 1px solid #e8e4de;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* ヘッダー設定（×ボタン重なり防止） */
.undoudou-modal__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #eae6df;
}

.undoudou-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #3a403a;
  padding-right: 2.5rem;
}

/* ×ボタン（閉じるボタン）の配置修正 */
.undoudou-modal__close {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #777777;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.undoudou-modal__close:hover {
  color: #333333;
  background-color: #f0ece6;
}

/* ボディ領域 */
.undoudou-modal__body {
  padding: 1.5rem;
  background: #f9f7f7;
}

.undoudou-modal__lead {
  text-align: center;
  color: #666666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* カードグリッドレイアウト */
.undoudou-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* カード要素 */
.undoudou-modal__card {
  background: #ffffff;
  border: 1px solid #e8e4de;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.undoudou-modal__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* 画像コンテナ（写真のはみ出し防止） */
.undoudou-modal__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f4efe6;
}

.undoudou-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.undoudou-modal__card:hover .undoudou-modal__img {
  transform: scale(1.04);
}

/* カード本文 */
.undoudou-modal__card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  text-align: center;
}

.undoudou-modal__card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3a403a;
  margin-bottom: 0.5rem;
}

.undoudou-modal__card-desc {
  font-size: 0.85rem;
  color: #777777;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* TOPページの「組み合わせを考える」と同じカプセル型ボタン */
.undoudou-modal__btn,
.select-card .card-btn{
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 1rem 0rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  background-color: #F9E0DC !important;
  border: 1px solid #222;
  border-radius: 50px;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.undoudou-modal__btn:hover,
.select-card:hover .card-btn,
.select-card .card-btn:hover {
  background-color: #FDC8C0 !important;
  color: #222222 !important;
  border-color: #222222 !important;
}