@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** りょうこ・フロマージュ カスタムスタイル
************************************/

:root {
  --main-bg: #FFFDF0;
  /* 優しいクリーム色 */
  --accent-gold: #D4AF37;
  /* アンティークゴールド */
  --text-color: #4A3C31;
  /* 深みのあるブラウン */
}

body {
  background-color: var(--main-bg);
  color: var(--text-color);
  font-family: 'Times New Roman', "BIZ UDPMincho", serif;
  line-height: 1.8;
  padding-top: 80px;
  /* ヘッダーの高さ分、コンテンツを下げる */
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 253, 240, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

/* トップページのみヘッダーを透明にオーバーレイ */
.home .site-header {
  background: transparent;
  border-bottom-color: transparent;
}

.home.scrolled .site-header {
  background: rgba(255, 253, 240, 0.98);
  border-bottom-color: rgba(212, 175, 55, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo a {
  font-size: 1.8rem;
  font-family: serif;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.site-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation li {
  margin-left: 30px;
}

.site-navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s;
}

.site-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width 0.3s;
}

.site-navigation a:hover {
  color: var(--accent-gold);
}

.site-navigation a:hover::after {
  width: 100%;
}

/* 共通コンテナ設定 */
.wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* メインコンテンツ全体の中央寄せ（上位階層） */
.main,
#content {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

/* 紹介セクション共通 */
.page-intro-section {
  padding: 100px 0;
  display: flex;
  align-items: center;
  gap: 60px;
}

.page-intro-section:nth-child(even) {
  flex-direction: row-reverse;
}

.intro-image {
  flex: 1;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.intro-image:hover img {
  transform: scale(1.05);
}

.intro-text {
  flex: 1;
}

.intro-text h2 {
  font-size: 2.22rem;
  margin-bottom: 20px;
}

.intro-text p {
  margin-bottom: 30px;
  color: #665c54;
}

/* 特別セクション (Royal Truffle) */
.special-product-section {
  background-color: #2c241e;
  /* ダークブラウンで特別感を */
  color: #fdfdfd;
  padding: 120px 0;
  margin: 60px 0;
}

.special-product-section .btn-gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.special-product-section .btn-gold:hover {
  background: var(--accent-gold);
  color: #2c241e;
}

/* メインビジュアル */
.hero-view {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: -80px;
  /* ヘッダー分を相殺して画面端まで表示 */
  min-height: 600px;
  background-image: url('assets/images/main-visual.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-copy {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

/* ゴールドアクセントの装飾 */
h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
}

/* ボタン */
.btn-gold {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  text-decoration: none;
  transition: all 0.3s;
  background: transparent;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--accent-gold);
  color: #fff;
}

/* ハンバーガーボタン基本スタイル */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s;
}

/* トップページでのハンバーガー色（透明ヘッダー時） */
.home .menu-toggle span {
  background-color: #fff;
}

.home.scrolled .menu-toggle span {
  background-color: var(--text-color);
}

/* ハンバーガー開閉アニメーション */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*768px以下（モバイル・タブレット）*/
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .site-header {
    height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  /* モバイルナビゲーション */
  .site-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--main-bg);
    padding: 100px 40px;
    transition: all 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .site-navigation.active {
    right: 0;
  }

  .site-navigation ul {
    flex-direction: column;
  }

  .site-navigation li {
    margin-left: 0;
    margin-bottom: 30px;
  }

  .site-navigation a {
    font-size: 1.2rem;
  }

  /* フロントページ・セクション縦並び */
  .page-intro-section {
    flex-direction: column !important;
    padding: 60px 0;
    gap: 30px;
  }

  .intro-image {
    width: calc(100% + 40px);
    margin: 0 -20px;
    aspect-ratio: 4/3;
    border-radius: 0;
  }

  .intro-text {
    width: 100%;
    text-align: center;
  }

  .intro-text h2 {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-view {
    height: 60vh;
  }
}