/* ===============================
    カラーテーマ & 変数
==================================*/
:root {
  --color-bg: #fdfaf5;
  --color-bg-accent: #f5f1eb;
  --color-text: #453e39;
  --color-text-sub: #6b625b;
  --color-accent: #358eb2;
  --color-accent-soft: #8fb1bf;
  --color-warm: #d99a5b;
  --color-leaf: #98b67c;
  --color-border: #e6ded4;
  --color-line: #06C755;
  --font-serif: "Shippori Mincho", serif;
  --font-rounded: "Kiwi Maru", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --section-padding: 100px;
}

/* ===============================
    リセット & 共通装飾
==================================*/
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  background-image: url('https://www.transparenttextures.com/patterns/paper.png');
  color: var(--color-text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; }

.marker-under {
  background: linear-gradient(transparent 70%, #f0e2d0 70%);
  font-weight: bold;
}

/* ===============================
    ヘッダー（サイドナビ）
==================================*/
header {
  position: fixed;
  top: 0; left: 0; width: 260px; height: 100vh;
  padding: 2.5rem 1.5rem;
  background-color: rgba(253, 250, 245, 0.98);
  border-right: 1px solid var(--color-border);
  z-index: 1000;
  display: flex; flex-direction: column; align-items: center;
}

.main-logo {
  width: 140px; height: 140px; object-fit: contain;
  mix-blend-mode: multiply; margin-bottom: 0.5rem;
}

.header-logo-container { text-align: center; margin-bottom: 2.5rem; }
.header-logo-container p {
  font-size: 0.75rem; color: var(--color-text-sub);
  line-height: 1.6; font-family: var(--font-serif);
}

.desktop-nav { width: 100%; }
.desktop-nav ul { list-style: none; }
.desktop-nav a {
  text-decoration: none; color: var(--color-text); font-size: 0.9rem;
  display: flex; align-items: center; padding: 0.8rem 1rem;
  border-radius: 50px; transition: 0.3s; margin-bottom: 0.2rem;
}

.desktop-nav a i { margin-right: 12px; font-size: 0.85rem; color: var(--color-leaf); width: 1.2rem; text-align: center; }
.desktop-nav a:hover, .desktop-nav a.active {
  background: var(--color-bg-accent); color: var(--color-accent); padding-left: 1.5rem;
}
.desktop-nav a.active i { color: var(--color-accent); }

.sidebar-footer { margin-top: auto; font-size: 0.75rem; color: var(--color-text-sub); text-align: center; padding-bottom: 2rem; }
.sidebar-footer p { margin-bottom: 15px; line-height: 1.5; }
.sidebar-footer a { color: inherit; text-decoration: none; opacity: 0.6; border-bottom: 1px solid #ccc; }

/* ===============================
    モバイルヘッダー
==================================*/
.mobile-header-bar {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 70px;
  background: rgba(253, 250, 245, 0.95); backdrop-filter: blur(5px);
  z-index: 1050; padding: 0 20px; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.mobile-header-logo { height: 50px; mix-blend-mode: multiply; }
.hamburger-container { display: flex; align-items: center; gap: 12px; }
.hamburger-label { font-family: var(--font-rounded); font-size: 0.75rem; color: var(--color-leaf); font-weight: bold; letter-spacing: 0.1em; }

.hamburger {
  width: 44px; height: 44px; background: var(--color-leaf); border: none;
  border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s;
}

.hamburger-inner { width: 20px; height: 14px; position: relative; }
.hamburger-inner span { position: absolute; width: 100%; height: 2px; background: #fff; transition: 0.4s; border-radius: 2px; }
.hamburger-inner span:nth-child(1) { top: 0; }
.hamburger-inner span:nth-child(2) { top: 6px; width: 80%; right: 0; }
.hamburger-inner span:nth-child(3) { top: 12px; }

.hamburger.open { background: var(--color-warm); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 6px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 6px; }

.mobile-nav {
  position: fixed; inset: 0; background: rgba(253, 250, 245, 0.98);
  z-index: 1100; display: flex; flex-direction: column;
  align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.5s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  color: var(--color-text); text-decoration: none; font-size: 1.4rem;
  font-family: var(--font-rounded); margin: 1rem 0; display: flex; align-items: center; gap: 15px;
}
.mobile-nav a.active { color: var(--color-accent); font-weight: bold; }

/* ===============================
    ヒーローエリア
==================================*/
#hero {
  margin-left: 260px; height: 90vh; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #222;
}
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 2.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%); }
.hero-content { position: relative; z-index: 3; text-align: center; color: #fff; padding: 2rem; }
.hero-subtext { letter-spacing: 0.4em; font-size: 0.95rem; margin-bottom: 1rem; font-family: var(--font-serif); opacity: 0.9; }
.hero-content h2 { font-family: var(--font-rounded); font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.7; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }

/* ===============================
    メインコンテンツ
==================================*/
main { margin-left: 260px; }
section { padding: var(--section-padding) 8%; scroll-margin-top: 20px; }

.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 {
  font-family: var(--font-rounded); font-size: 2rem; color: var(--color-accent);
  position: relative; display: inline-block; padding-bottom: 15px;
}
.section-title h2::after {
  content: ""; position: absolute; bottom: 0; left: 10%; width: 80%; height: 3px;
  background-image: radial-gradient(var(--color-warm) 20%, transparent 20%);
  background-size: 8px 3px; background-repeat: repeat-x;
}

/* ABOUT */
.about-wrap { max-width: 800px; margin: 0 auto; text-align: center; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 2rem; color: var(--color-warm); line-height: 1.6; }
.about-text p { margin-bottom: 1.5rem; text-align: left; max-width: 650px; margin-inline: auto; }
.about-company-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 2rem; padding: 0.7rem 1.8rem;
  border: 1px solid var(--color-text-sub); border-radius: 50px; color: var(--color-text-sub);
  text-decoration: none; font-size: 0.9rem; transition: 0.3s;
}
.about-company-btn:hover { background: #fff; color: var(--color-accent); border-color: var(--color-accent-soft); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* SERVICE */
.service-section { background: var(--color-bg-accent); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card {
  background: #fff; padding: 3rem 2rem; border-radius: 30px; border: 2px dashed var(--color-border);
  text-align: center; transition: 0.3s; display: flex; flex-direction: column; align-items: center;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--color-leaf); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.service-card i {
  font-size: 2.2rem; color: var(--color-leaf); margin-bottom: 1.5rem;
  background: var(--color-bg-accent); width: 75px; height: 75px; line-height: 75px;
  border-radius: 50%; display: inline-block;
}
.service-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.service-card p { flex-grow: 1; margin-bottom: 2rem; font-size: 0.95rem; }
.service-detail-btn {
  display: inline-block; padding: 0.5rem 1.5rem; font-size: 0.85rem; color: var(--color-accent);
  border: 1px solid var(--color-accent); border-radius: 50px; text-decoration: none;
  transition: all 0.3s; font-family: var(--font-rounded); font-weight: 500;
}
.service-detail-btn:hover { background: var(--color-accent); color: #fff; }

/* GALLERY */
.gallery-outer { margin-left: -8%; margin-right: -8%; padding: 4rem 0 2rem; background: rgba(230, 222, 212, 0.2); }
.gallery-container {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2rem 8%; gap: 2.5rem;
  scrollbar-width: thin; scrollbar-color: var(--color-border) transparent;
}
.gallery-container::-webkit-scrollbar { height: 6px; }
.gallery-container::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 10px; }

.gallery-item {
  flex: 0 0 300px; scroll-snap-align: center; background: #fff; padding: 15px 15px 60px 15px;
  box-shadow: 3px 10px 25px rgba(0,0,0,0.1); transition: transform 0.4s; position: relative;
}
.gallery-item:nth-child(odd) { transform: rotate(-1.5deg); }
.gallery-item:nth-child(even) { transform: rotate(1.5deg); }
.gallery-item:hover { transform: rotate(0) translateY(-15px) scale(1.05); z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.gallery-img-box { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #eee; }
.gallery-img-box img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; bottom: 20px; left: 15px; right: 15px; font-family: var(--font-rounded); font-size: 0.9rem; color: var(--color-text-sub); text-align: center; }
.gallery-scroll-hint { text-align: center; margin-top: 1.5rem; font-size: 0.8rem; color: var(--color-text-sub); opacity: 0.7; }

/* ACCESS / CONTACT */
.access-section { text-align: center; }
.contact-lead { margin-bottom: 3.5rem; max-width: 700px; margin-inline: auto; font-size: 1.05rem; }
.line-flow { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.flow-step {
  background: #fff; padding: 1.5rem; border-radius: 20px; width: 200px; position: relative;
  text-align: center; border: 1px solid var(--color-border); box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.flow-step::after { content: "→"; position: absolute; right: -1.2rem; top: 50%; transform: translateY(-50%); color: var(--color-accent-soft); font-weight: bold; }
.flow-step:last-child::after { content: none; }
.flow-step i { color: var(--color-line); font-size: 1.8rem; margin-bottom: 0.8rem; display: block; }
.flow-step span { font-size: 0.75rem; font-weight: bold; color: var(--color-accent-soft); display: block; margin-bottom: 5px; }
.flow-step p { font-size: 0.95rem; font-weight: 500; }

.cta-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 1.2rem 3.5rem; background: var(--color-line);
  color: #fff; text-decoration: none; border-radius: 50px; font-weight: bold; transition: 0.3s;
  font-size: 1.1rem; box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}
.cta-btn:hover { background: #05b04b; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4); }

.access-info-container { margin-top: 6rem; margin-bottom: 2rem; text-align: left; max-width: 850px; margin-inline: auto; }
.text-left { text-align: left; margin-bottom: 2rem; }
.sub-h2 { font-size: 1.6rem; }
.access-grid { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 2rem; }
.access-col { flex: 1; min-width: 280px; }
.access-label { font-weight: bold; color: var(--color-accent); margin-bottom: 0.5rem; }
.text-sub-small { font-size: 0.85rem; color: var(--color-text-sub); }
.map-wrapper { border-radius: 30px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.08); background: #eee; line-height: 0; }

/* FOOTER */
footer { margin-left: 260px; padding: 100px 8% 40px; background: var(--color-bg-accent); text-align: center; border-top: 1px solid var(--color-border); }
.footer-logo { width: 90px; mix-blend-mode: multiply; margin-bottom: 1.5rem; }
.footer-brand { font-family: var(--font-rounded); font-size: 1.4rem; color: var(--color-accent); margin-top: 0.5rem; letter-spacing: 0.1em; }
.footer-sub { margin-top: 0.5rem; font-size: 0.9rem; color: var(--color-text-sub); }
.footer-links { margin: 2rem 0; font-size: 0.85rem; }
.footer-links a { color: var(--color-text-sub); text-decoration: none; margin: 0 15px; transition: 0.3s; }
.footer-links a:hover { color: var(--color-accent); }
.footer-copy { font-size: 0.75rem; color: #999; margin-top: 2rem; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(30px); transition: 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ===============================
    レスポンシブ
==================================*/
@media (max-width: 1024px) {
  header { display: none; }
  main, footer { margin-left: 0; }
  .mobile-header-bar { display: flex; }
  #hero { margin-left: 0; height: 70vh; margin-top: 70px; }
  section { padding: 80px 6%; }
  .line-flow { gap: 15px; }
  .flow-step { width: calc(50% - 15px); }
  .flow-step::after { display: none; }
  .gallery-outer { margin-left: -6%; margin-right: -6%; padding-top: 3rem; }
}
@media (max-width: 600px) {
  .flow-step { width: 100%; }
  .cta-btn { width: 100%; justify-content: center; padding: 1.2rem 1.5rem; }
  .about-text h3 { font-size: 1.5rem; }
}