@charset "UTF-8";

/* ==========================================================================
   c-buttons.css - サイト共通・汎用リンクボタン（ゴールド仕様）
   どのページでも class="c-btn" を指定するだけで、朝食セクションと同じ構造の
   「ゴールドの枠線ボタン」を綺麗に使い回すことができます。
   ========================================================================== */

/* -----------------------------------------
   1. 配置コントロール（ラッパー）
----------------------------------------- */
/* ボタンをコンテナ内で中央揃えにする場合（基本形） */
.btn-container-center {
  text-align: center;
  margin: 40px auto;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

/* ボタンをコンテナ内で左揃えにする場合（記事や2カラム内など） */
.btn-container-left {
  text-align: left;
  margin: 40px 0;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

/* -----------------------------------------
   2. 汎用ボタン共通スタイル
----------------------------------------- */
.c-btn {
  display: inline-block;
  position: relative;
  min-width: 290px;             /* PC・スマホ双方で美しく見える最小幅 */
  max-width: 100%;
  padding: 12px 50px;           /* 朝食ボタンのサイズに完全準拠 */
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-align: center;
  border-radius: 0;             /* 朝食ボタンに合わせ、丸みのないシャープな四角形 */
  box-sizing: border-box;
  background-color: transparent; /* 基本は背景透過（白背景の上で映える設定） */
  border: 2px solid #b38728;    /* ゴールドの枠線 */
  box-shadow: none;             /* 朝食ボタンのデザインに合わせ、シャドウはなし */
  transition: all 0.3s ease;
  cursor: pointer;
}

/* ボタン内テキスト（矢印との同期用） */
.c-btn span {
  position: relative;
  display: inline-block;
  padding-right: 22px;          /* 矢印アイコンの退避スペース */
  color: #b38728;               /* ゴールドの文字色 */
  transition: all 0.3s ease;
}

/* ボタン内右側の矢印アイコン（CSSで描画） */
.c-btn span::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor; /* 文字色（#b38728）と自動同期 */
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s ease;
}

/* -----------------------------------------
   3. ホバーアクション（マウスオーバー効果）
----------------------------------------- */
.c-btn:hover {
  background-color: #b38728;    /* ホバー時に背景をゴールドで塗りつぶし */
}

.c-btn:hover span {
  color: #ffffff;               /* ホバー時に文字と矢印を白に反転 */
  padding-right: 27px;          /* 矢印が少し右にピコッと動くアニメーション */
}

/* -----------------------------------------
   4. レスポンシブ対応（スマホ幅での最適化）
----------------------------------------- */
@media screen and (max-width: 480px) {
  .btn-container-center,
  .btn-container-left {
    margin: 30px auto;
    padding: 0 10px;
  }
  
  .c-btn {
    min-width: 100%;            /* スマホ画面では横幅いっぱいにフィットさせて押しやすく */
    padding: 12px 20px;
    font-size: 15px;
  }
}