/* ========================================
   ★ 編集しやすい設定（色・文字サイズはここを変更）
   ======================================== */
:root {
  --color-main: #2c3e50;
  --color-accent: #e67e22;
  --color-accent-dark: #d35400;
  --color-bg: #ffffff;
  --color-bg-gray: #f5f6f8;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;

  --font-main: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --max-width: 960px;
  --header-height: 64px;
}

/* ========================================
   基本スタイル
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-gray {
  background: var(--color-bg-gray);
}

.section-title {
  font-size: 1.75rem;
  color: var(--color-main);
  text-align: center;
  margin-bottom: 12px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  padding: calc(var(--header-height) + 48px) 0 48px;
  background: linear-gradient(135deg, #fdf6ec 0%, #fff 50%, #f0f4f8 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 1.75rem;
  color: var(--color-main);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-main);
  border: 2px solid var(--color-main);
}

.btn-outline:hover {
  background: var(--color-main);
  color: #fff;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-contact {
  color: #fff;
  text-align: center;
  display: block;
}

.btn-email { background: var(--color-main); }
.btn-email:hover { background: #1a252f; }
.btn-instagram { background: #e1306c; }
.btn-instagram:hover { background: #c13584; }
.btn-mercari { background: #ff0211; }
.btn-mercari:hover { background: #d90000; }

.text-link {
  color: var(--color-accent);
  font-weight: bold;
}

.text-link:hover {
  text-decoration: underline;
}

/* ========================================
   固定ナビゲーション
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--color-main);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.is-current {
  color: var(--color-accent);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-main);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   トップページ
   ======================================== */
.hero {
  padding: calc(var(--header-height) + 60px) 0 80px;
  background: linear-gradient(135deg, #fdf6ec 0%, #fff 50%, #f0f4f8 100%);
  text-align: center;
}

.hero-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: bold;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2rem;
  color: var(--color-main);
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-text {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.feature-card h3 {
  color: var(--color-main);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

/* ========================================
   仮の画像枠
   ======================================== */
.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ececec 0%, #d8d8d8 100%);
  color: #999;
  font-size: 0.85rem;
  font-weight: bold;
  border: 2px dashed #ccc;
  border-radius: 8px;
}

.image-placeholder.square {
  aspect-ratio: 1 / 1;
}

.placeholder-icon {
  font-size: 2rem;
  opacity: 0.5;
}

/* ========================================
   商品カード
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.product-body {
  padding: 20px;
}

.product-body h2,
.product-body h3 {
  font-size: 1.1rem;
  color: var(--color-main);
  margin-bottom: 4px;
}

.product-price {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.product-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.product-tags li {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--color-bg-gray);
  border-radius: 20px;
  color: var(--color-text-light);
}

/* ========================================
   商品詳細ページ
   ======================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-info h2 {
  font-size: 1.5rem;
  color: var(--color-main);
  margin-bottom: 8px;
}

.detail-info .product-price {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.detail-info p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.detail-list {
  margin-bottom: 24px;
}

.detail-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.detail-list li strong {
  color: var(--color-main);
  display: inline-block;
  min-width: 100px;
}

.detail-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========================================
   制作実績ギャラリー
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  margin: 0;
}

.gallery-item figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: center;
}

/* ========================================
   料金表
   ======================================== */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.9rem;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table th {
  background: var(--color-main);
  color: #fff;
  white-space: nowrap;
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: center;
}

/* ========================================
   注文の流れ
   ======================================== */
.flow-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.flow-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.flow-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.flow-item h3 {
  font-size: 1rem;
  color: var(--color-main);
  margin-bottom: 4px;
}

.flow-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ========================================
   問い合わせページ
   ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
}

.contact-box h3 {
  color: var(--color-main);
  margin-bottom: 12px;
}

.contact-box p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

/* ========================================
   フッター
   ======================================== */
.footer {
  padding: 24px 0;
  background: var(--color-main);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover {
  color: #fff;
}

/* ========================================
   スマホ対応
   ======================================== */
@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero h1,
  .page-header h1 {
    font-size: 1.5rem;
  }

  .feature-grid,
  .product-grid,
  .gallery-grid,
  .detail-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
