@charset "UTF-8";

/* --- カラーパレット（ここで色を一括管理できます） --- */
:root {
  --bg-color: #fdfaf5;      /* 背景色（温かみのあるオフホワイト） */
  --text-main: #4a3b32;     /* メインテキスト色（こげ茶） */
  --accent-color: #b59273;  /* アクセントカラー（薄めの茶系） */
  --accent-hover: #9c7b5a;  /* ボタンホバー時の色 */
  --white: #ffffff;
}

/* --- ベース設定 --- */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.8;
}
img { max-width: 100%; height: auto; }

a { text-decoration: none; color: var(--text-main); transition: color 0.3s; }
a:hover { color: var(--accent-color); }

/* --- ヘッダー --- */
header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  font-size: 18px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0px;
}
.logo img { height: 150px; }
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}
nav a { font-weight: bold; }
.mail-link {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
}
.mail-link:hover {
  background-color: var(--accent-hover);
  color: var(--white);
}

/* --- メインコンテンツ --- */
main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
.hero { text-align: center; margin-bottom: 60px; }
.hero h2 { color: var(--accent-color); font-size: 28px; margin-bottom: 0pt; }
section { margin-bottom: 60px; background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.02);}
h2.section-title { border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; margin-bottom: 30px; padding-top: 0px; margin-top: 0px; }

p.top { font-size: 14pt; margin-top: 0pt; }

section a {
  color: #4f8dd8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
section a:hover {
  border-bottom-color: currentColor;
}
section a:visited {
  color: #7a5bc1;
}

/* --- ギャラリー・レイアウト --- */
.flex-container { display: flex; gap: 30px; align-items: flex-start; }
.flex-item { flex: 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; place-items: center;
}
.gallery img { display: block; max-width: 100%; height: auto; }

/* --- 商品紹介テーブル --- */
table.items { width: 100%; border-collapse: collapse;}
th.items, td.items { border: 1px solid #ddd; padding: 5px 15px; }

/* --- 特定商取引法テーブル --- */
table.law { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #ddd; padding: 15px; }
th { background-color: #f9f6f0; width: 30%; text-align: left; }

/* --- フッター --- */
footer {
  background-color: var(--text-main);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
}

/* =========================================================
   ここから下はスマホ対応（レスポンシブ）用の追加コードです
   ========================================================= */

/* PC表示の時はハンバーガーメニューのボタンを隠す */
.menu-btn, .menu-icon {
  display: none;
}

/* 画面幅が768px以下のスマートフォン・タブレット向けのスタイル */
@media screen and (max-width: 768px) {
  
  /* --- 余白や文字サイズの調整 --- */
  main { margin: 20px auto; }
  section { padding: 20px; margin-bottom: 40px; }
  .hero h2 { font-size: 22px; }

  /* --- レイアウトの縦積み化（スマホ画面に収める） --- */
  .flex-container {
    flex-direction: column; /* 写真と文章の横並びを縦並びに変更 */
    gap: 20px;
  }

  /* --- 表（特定商取引法）のスマホ表示（縦積み） --- */
  table, tbody, tr, th, td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  th { border-bottom: none; }
  td { margin-bottom: 10px; border-top: none; }

  /* --- ハンバーガーメニューの見た目と動き --- */
  
  /* 通常の横並びメニューを隠し、スマホ用の縦並びメニューとして設定 */
  .global-nav {
    display: none; /* 初期状態では非表示 */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .global-nav ul {
    flex-direction: column;
    padding: 10px 0 20px 0;
    gap: 0;
  }
  .global-nav li {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #fdfaf5; /* メニューの区切り線 */
  }
  .global-nav li:last-child { border-bottom: none; }
  .mail-link { display: inline-block; margin-top: 10px; }

  /* ハンバーガーアイコン（三本線）の表示 */
  .menu-icon {
    display: block;
    cursor: pointer;
    padding: 20px;
    position: relative;
    user-select: none;
  }
  .navicon {
    background: var(--text-main);
    display: block;
    height: 3px;
    position: relative;
    transition: background .2s ease-out;
    width: 25px;
    border-radius: 2px;
  }
  .navicon:before, .navicon:after {
    background: var(--text-main);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
    border-radius: 2px;
  }
  .navicon:before { top: 8px; }
  .navicon:after { top: -8px; }
  
  /* メニューが開いた時のアイコン変化（三本線が「×」印になる） */
  .menu-btn:checked ~ .menu-icon .navicon { background: transparent; }
  .menu-btn:checked ~ .menu-icon .navicon:before { transform: rotate(-45deg); top: 0; }
  .menu-btn:checked ~ .menu-icon .navicon:after { transform: rotate(45deg); top: 0; }
  
  /* メニューが開いた時にナビゲーションを表示する */
  .menu-btn:checked ~ .global-nav { display: block; }
}