/* ================================================================
   株式会社幸幸 共通スタイルシート
================================================================ */

:root {
  --orange:      #FF8C38;
  --orange-dark: #E07225;
  --orange-pale: #FFF3E5;
  --cream:       #FFF8F2;
  --white:       #FFFFFF;
  --brown:       #3A2416;
  --brown-mid:   #6B4C38;
  --text:        #3D2B1F;
  --gray:        #7A6B62;
  --gray-light:  #B8ADA8;
  --border:      #EDE0D4;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.10);
  --leaf:        #5A9B42;
  --aqua:        #28A9A1;
  --rose:        #F47C8A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== ヘッダー ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,140,56,0.12);
  transition: box-shadow 0.3s;
  height: 72px;
  display: flex; align-items: center;
}
header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.logo-mark { width: 42px; height: 42px; }
.logo-img {
  width: min(230px, 42vw);
  height: auto;
  display: block;
}
.logo-text {
  font-family: 'Kaisei Decol', serif;
  font-size: 20px; font-weight: 700;
  color: var(--brown); line-height: 1.2;
}
.logo-text small {
  display: block; font-size: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400; color: var(--gray-light);
  letter-spacing: 0.05em; margin-top: 2px;
}

/* デスクトップナビ */
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.desktop-nav > ul > li { position: relative; }
.desktop-nav > ul > li > a {
  display: block; padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--brown-mid);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.desktop-nav > ul > li > a:hover,
.desktop-nav > ul > li > a.active {
  color: var(--orange);
  background: var(--orange-pale);
}
.has-dropdown > a::after { content: ' ▾'; font-size: 10px; }

/* ドロップダウン */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  list-style: none;
  z-index: 200;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; }
.dropdown li a {
  display: block; padding: 10px 16px;
  font-size: 13px; color: var(--text);
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: var(--orange-pale); color: var(--orange); }

/* お問合せボタン */
.btn-contact-header {
  display: inline-flex; align-items: center;
  padding: 10px 24px;
  background: var(--orange); color: var(--white);
  border-radius: 9999px; font-size: 14px; font-weight: 700;
  margin-left: 12px;
  box-shadow: 0 8px 24px rgba(255,140,56,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-contact-header:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,140,56,0.45);
}

/* ハンバーガー */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
  z-index: 1100;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--brown); border-radius: 2px; transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* モバイルメニュー */
.mobile-nav {
  display: none; position: fixed; inset: 0; top: 72px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column; align-items: flex-start;
  padding: 32px; gap: 0;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 16px 0;
  font-size: 18px; font-weight: 700;
  color: var(--brown);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .mobile-sub {
  padding-left: 16px; font-size: 15px; font-weight: 500;
  color: var(--gray); border-bottom-color: var(--cream);
}
.mobile-nav .btn-contact-header { margin-top: 24px; width: 100%; justify-content: center; }

/* ===== 共通セクション ===== */
section { padding: 96px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--orange);
  text-transform: uppercase; margin-bottom: 16px;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--orange);
}
.section-heading {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900; color: var(--brown);
  margin-bottom: 20px; line-height: 1.25;
  letter-spacing: -0.01em;
}
.section-heading em { font-style: normal; color: var(--orange); }
.section-subtext {
  font-size: 15px; color: var(--gray);
  max-width: 520px; line-height: 2;
  margin-bottom: 56px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 32px; border-radius: 9999px;
  font-size: 15px; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 16px 40px rgba(255,140,56,0.40);
}
.btn-outline {
  background: var(--white); color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover { background: var(--orange-pale); }
.btn-arrow::after { content: ' →'; }

/* ===== カード ===== */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(0,0,0,0.12); }
.card-body { padding: 28px; }

/* ===== パンくずリスト ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray-light); margin-bottom: 20px;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--gray-light); }

/* ===== ページヒーロー（内部ページ用） ===== */
.page-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,140,56,0.18), transparent 28%),
    linear-gradient(135deg, #FFF7EE 0%, #FFFFFF 52%, #F1F8F0 100%);
  padding: 120px 0 64px; margin-top: 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -58px;
  height: 116px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
}
.page-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  position: relative; z-index: 1;
}
.page-hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--orange); background: rgba(255,140,56,0.12);
  padding: 4px 14px; border-radius: 9999px; margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900; color: var(--brown);
  line-height: 1.25; margin-bottom: 16px;
}
.page-hero p {
  font-size: 16px; color: var(--gray);
  max-width: 560px; line-height: 2;
}

/* ===== プレミアム演出・写真・こうちゃん ===== */
.glass-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 22px 60px rgba(65,43,26,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.wave-band {
  background:
    radial-gradient(circle at 10% 15%, rgba(255,140,56,0.12), transparent 24%),
    linear-gradient(180deg, #FFFFFF 0%, #FFF8F1 100%);
}
.brand-logo-panel {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,140,56,0.16);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 16px 42px rgba(70,44,24,0.10);
  margin-bottom: 22px;
}
.brand-logo-panel img {
  width: min(420px, 72vw);
  max-height: 86px;
  object-fit: contain;
}
.photo-mask {
  border-radius: 28px 8px 28px 8px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(58,36,22,0.14);
  position: relative;
}
.photo-mask::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,140,56,0.10));
  pointer-events: none;
}
.photo-mask img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.kouchan-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}
.kouchan {
  --k-size: 94px;
  position: relative;
  width: var(--k-size);
  height: var(--k-size);
  flex: 0 0 auto;
  animation: kouchan-float 3.6s ease-in-out infinite;
}
.kouchan::before {
  content: '';
  position: absolute;
  inset: 10px 12px 6px;
  background: linear-gradient(145deg, #FF9B2E, #F26F18);
  border: 3px solid #9F471D;
  border-radius: 46% 46% 42% 42%;
  box-shadow: inset 0 8px 0 rgba(255,255,255,0.28), 0 12px 24px rgba(224,114,37,0.22);
}
.kouchan::after {
  content: '幸';
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
}
.kouchan-face {
  position: absolute;
  left: 50%;
  top: 39%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 40px;
  background: #FFE7C6;
  border-radius: 50%;
  border: 2px solid rgba(120,55,22,0.38);
  z-index: 1;
}
.kouchan-face::before,
.kouchan-face::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 6px;
  height: 8px;
  background: #4A2718;
  border-radius: 50%;
}
.kouchan-face::before { left: 15px; }
.kouchan-face::after { right: 15px; }
.kouchan-mouth {
  position: absolute;
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
  width: 14px;
  height: 7px;
  border-radius: 0 0 14px 14px;
  background: #C94E36;
  z-index: 2;
}
.kouchan-leaf,
.kouchan-leaf::before,
.kouchan-leaf::after {
  position: absolute;
  width: 24px;
  height: 24px;
  background: linear-gradient(145deg, #8CCF22, #4E9A16);
  border-radius: 50% 50% 45% 45%;
  border: 2px solid #2E6F0B;
  z-index: 2;
}
.kouchan-leaf {
  content: '';
  left: 35px;
  top: -1px;
}
.kouchan-leaf::before {
  content: '';
  left: -19px;
  top: 8px;
  transform: rotate(-45deg);
}
.kouchan-leaf::after {
  content: '';
  left: 18px;
  top: 8px;
  transform: rotate(45deg);
}
.kouchan-bubble {
  background: rgba(255,255,255,0.88);
  border: 2px solid rgba(255,140,56,0.25);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  box-shadow: 0 12px 34px rgba(72,45,28,0.10);
  max-width: 280px;
}
.kouchan-widget.is-corner {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 980;
}
.kouchan-widget.is-corner .kouchan-bubble {
  max-width: 190px;
  font-size: 13px;
}
@keyframes kouchan-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
.nanairo-pop .kouchan {
  animation: kouchan-bounce 1.8s ease-in-out infinite;
}
@keyframes kouchan-bounce {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
  45% { transform: translateY(-18px) rotate(6deg) scale(1.04); }
}

/* Official generated Kouchan PNG. The CSS-drawn parts above are kept as fallback. */
.kouchan {
  background: url("images/brand/kouchan-base.png") center / contain no-repeat;
}
.kouchan::before,
.kouchan::after,
.kouchan-face,
.kouchan-leaf {
  display: none;
}

/* ===== 画像プレースホルダー ===== */
.img-placeholder {
  background: var(--cream);
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--gray-light);
  font-size: 13px; padding: 32px;
  text-align: center;
}
.img-placeholder .ph-icon { font-size: 40px; opacity: 0.5; }

/* ===== フッター ===== */
footer {
  background: #6B4633;
  color: rgba(255,255,255,0.75);
  padding: 72px 0 32px;
  border-radius: 48px 48px 0 0;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-img {
  width: min(250px, 70vw);
  height: auto;
  display: block;
}
.footer-brand .logo-text { color: #FFB56A; font-size: 22px; }
.footer-brand .logo-text small { color: rgba(255,255,255,0.35); }
.footer-brand p { font-size: 13px; line-height: 2.2; }
.footer-insta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px; border-radius: 9999px;
  margin-top: 16px; transition: 0.2s;
}
.footer-insta:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ===== Instagram CTA ===== */
.insta-page-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.88), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(255,214,163,0.55), transparent 30%),
    linear-gradient(135deg, #FFF7ED 0%, #FFF1E1 52%, #FFFFFF 100%);
  border-top: 1px solid rgba(255,140,56,0.14);
  border-bottom: 1px solid rgba(255,140,56,0.12);
}
.insta-page-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #FF8C38, #F97316, #22C55E, #38BDF8, #A78BFA, #F472B6);
}
.insta-page-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}
.insta-page-copy h2 {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.35;
  color: var(--brown);
  margin-bottom: 14px;
}
.insta-page-copy h2 span { color: var(--orange); }
.insta-page-copy p {
  font-size: 14px;
  color: var(--gray);
  line-height: 2;
}
.insta-page-kouchan {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.insta-page-kouchan img {
  width: 84px;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(201,98,25,0.18));
  animation: insta-page-float 3s ease-in-out infinite;
}
.insta-page-bubble {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,140,56,0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
  box-shadow: 0 14px 30px rgba(45,34,26,0.08);
}
@keyframes insta-page-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
.insta-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.insta-page-card {
  position: relative;
  min-height: 156px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,140,56,0.16);
  border-radius: 8px;
  padding: 18px;
  color: #5F4A3A;
  box-shadow: 0 14px 34px rgba(45,34,26,0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.insta-page-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.36);
  box-shadow: 0 22px 46px rgba(45,34,26,0.13);
}
.insta-page-card::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #F97316, #F43F5E, #A855F7);
}
.insta-page-card small {
  display: block;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.insta-page-card strong {
  display: block;
  color: var(--brown);
  font-size: 16px;
  margin-bottom: 10px;
}
.insta-page-card span {
  display: block;
  color: var(--gray);
  font-size: 12px;
  font-weight: 800;
  word-break: break-all;
  line-height: 1.6;
}
.insta-page-card em {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--orange);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.footer-nav h4 {
  font-size: 11px; font-weight: 700;
  color: var(--white); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 20px;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-nav a:hover { color: #FFB56A; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
}

/* ===== スクロールトップ ===== */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--orange); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(255,140,56,0.45);
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  z-index: 990;
}
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(255,140,56,0.55); }

/* ===== お問い合わせCTA（共通） ===== */
.cta-band {
  background: var(--orange);
  padding: 72px 0; text-align: center;
}
.cta-band h2 {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--white); margin-bottom: 16px; font-weight: 900;
}
.cta-band p { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 2; }
.cta-band .btn-white {
  background: var(--white); color: var(--orange);
  padding: 16px 44px; border-radius: 9999px;
  font-size: 16px; font-weight: 700;
  display: inline-block; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0,0,0,0.2); }

/* ===== レスポンシブ ===== */
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .insta-page-inner { grid-template-columns: 1fr; }
  .insta-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .section-inner { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 24px; }
  .page-hero { padding: 100px 0 48px; }
  .page-hero-inner { padding: 0 20px; }
  .scroll-top { bottom: 20px; right: 20px; }
  footer { border-radius: 28px 28px 0 0; }
  .brand-logo-panel img { width: min(320px, 80vw); }
  .kouchan-widget.is-corner {
    position: static;
    margin: 24px 20px 0;
  }
  .kouchan-widget {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    align-items: flex-start;
    gap: 10px;
  }
  .kouchan { --k-size: 78px; }
  .kouchan-bubble {
    flex: 1;
    max-width: calc(100vw - 130px);
    min-width: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .insta-page-kouchan { align-items: flex-start; }
  .insta-page-kouchan img { width: 72px; }
}
