/* =========================================
   1. Tokens & Variables (全ページ共通：Aboutデザインベース)
========================================= */
:root {
  /* Colors: Warm & Gentle Theme */
  --text: #333333;              /* 少し柔らかい黒 */
  --text-subtle: #5f6368;
  --muted: #888888;
  
  --bg-gradient: 
    radial-gradient(circle at 0% 0%, rgba(254,249,195,0.6), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(221,239,253,0.6), transparent 55%),
    #f9fafb; /* Base fallback */

  /* Aboutページ由来のカラー */
  --accent: #d4a373;            /* Main Gold/Tan */
  --accent-light: #faedcd;      /* Light Beige */
  --accent-warm: #b35d35;       /* Brownish Orange */
  
  --brand: #4a3b32;             /* Dark Brown (Logo/Heading) */
  
  --card-bg: #ffffff;
  --card-radius: 1.5rem;        /* 強めの角丸 */
  --card-shadow: 0 14px 40px rgba(15,23,42,0.06);
  --card-border: 1px solid rgba(148,163,184,0.25);

  /* Layout */
  --header-h: 64px;
  --max-w: 1080px;

  /* Components */
  --btn-radius: 999px;          /* 完全な丸み */
  --btn-shadow: 0 6px 18px rgba(212,163,115,0.35); /* ゴールド系の影 */
}

@media (max-width: 640px) {
  :root { --header-h: 56px; }
}

/* =========================================
   2. Base & Reset
========================================= */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg-gradient); /* 全ページ共通グラデーション */
  background-attachment: fixed;   /* スクロールしても背景固定 */
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }
section[id] { scroll-margin-top: var(--header-h); }
* { box-sizing: border-box; }

/* =========================================
   3. Header
========================================= */
.site-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  background: rgba(255,255,255,0.85); 
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w); margin: 0 auto; height: 100%; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo img { height: 38px; width: auto; }
.logo .brand { 
  font-weight: 700; font-size: 1.2rem; 
  color: var(--brand); letter-spacing: .03em; 
}

.nav { display: flex; gap: 1.5rem; }
.nav a {
  font-weight: 700; color: var(--brand); text-decoration: none; font-size: .95rem;
  position: relative; transition: color .2s;
}
.nav a:hover { color: var(--accent); }
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; 
  width: 0; height: 3px; background: var(--accent); 
  transition: all .2s; transform: translateX(-50%); border-radius: 3px;
}
.nav a:hover::after { width: 100%; }

@media (max-width: 640px) {
  .nav { display: none; }
  .header-inner { justify-content: center; }
  .logo img { height: 32px; }
  .logo .brand { font-size: 1.1rem; }
}

/* =========================================
   4. Button System (Warm Theme)
========================================= */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: var(--btn-radius); border: none;
  padding: .8rem 1.6rem; font-size: 1rem; line-height: 1.2;
  transition: all .25s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

/* Primary: Warm Gradient */
.btn--primary { 
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #fff; 
  box-shadow: 0 4px 15px rgba(253, 160, 133, 0.4);
}

/* Ghost: Brown/Tan Outline */
.btn--ghost { 
  background: #fff; 
  color: var(--brand); 
  border: 2px solid var(--accent);
}
.btn--ghost:hover { background: var(--accent-light); }

.btn--lg { font-size: 1.1rem; padding: 1rem 2rem; }
@media (max-width: 640px) { .btn--lg { padding: .8rem 1.5rem; } }

/* =========================================
   5. Footer
========================================= */
.site-footer {
  background: #ffffff; 
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 3rem 1rem 1rem; color: var(--text); font-size: .95rem; margin-top: auto;
}
.footer-inner {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: var(--max-w); margin: 0 auto;
}
.footer-brand .brand-name { font-weight: 700; font-size: 1.2rem; color: var(--brand); margin: 0 0 .5rem; }
.footer-brand .brand-desc { color: var(--text-subtle); line-height: 1.7; margin: 0; }

.footer-nav h3, .footer-info h3 { 
  font-size: 1rem; margin: 0 0 1rem; 
  color: var(--brand); border-left: 4px solid var(--accent); padding-left: 8px; 
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .6rem; }
.footer-nav a, .footer-info a { color: var(--text); text-decoration: none; transition: color .2s; }
.footer-nav a:hover, .footer-info a:hover { color: var(--accent-warm); text-decoration: underline; }

.footer-info p { margin: .4rem 0; line-height: 1.6; color: var(--text-subtle); }

.mail-row { 
  display: flex; align-items: center; gap: 8px; 
}
.paw-mail { 
  width: 24px; 
  height: 24px; 
  transition: transform .2s;
}
.mail-link:hover .paw-mail { 
  transform: translateY(-2px); 
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.05); margin-top: 3rem; padding-top: 1.5rem;
  text-align: center; color: var(--muted); font-size: .85rem;
}

/* フッター内のリンクに常に下線をつける調整 */
.footer-info a {
  text-decoration: underline;      /* 常に下線を表示 */
  text-underline-offset: 3px;      /* 文字と線の間隔を少し空ける */
  text-decoration-color: var(--muted); /* 線の色を少し薄くして上品に */
}

.footer-info a:hover {
  text-decoration-color: var(--accent-warm); /* ホバー時は色を変える */
  color: var(--accent-warm);
}

/* =========================================
   7. SNS Section
========================================= */
.sns-section {
  padding: 2rem 1rem 4rem; /* フッター前なので下余白を多めに */
  text-align: center;
}

.sns-wrap {
  max-width: 800px; margin: 0 auto;
  background: #fff;
  border-radius: 1.5rem;
  border: 4px solid var(--accent-light); /* 太めのベージュ枠で可愛く */
  padding: 2rem 1rem;
}

.sns-title {
  font-size: 1.4rem; color: var(--brand); margin: 0 0 0.5rem;
}

.sns-desc {
  color: var(--text-subtle); font-size: 0.95rem; line-height: 1.6;
  margin: 0 auto 1.5rem;
}

.sns-links {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.btn-sns {
  min-width: 160px;
  border-radius: 99px;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}
.btn-sns:hover {
  transform: translateY(-2px); opacity: 0.9;
}

/* X (Twitter) Black */
.btn-x { background: #000; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* Note Green */
.btn-note { background: #2cb696; box-shadow: 0 4px 10px rgba(44,182,150,0.3); }

/* スマホ調整 */
@media (max-width: 600px) {
  .sns-wrap { padding: 1.5rem 1rem; }
  .btn-sns { width: 100%; }
}

