﻿/* =========================================================
   common.css
   theme_service_soft_green_refined
   ---------------------------------------------------------
   相談系・やさしいグリーンテーマ
   LP・HP制作 / 士業 / 無料相談 / 個人事業主向けサービスに向いた共通CSS
========================================================= */

/* ---------------------------------------------------------
   変数定義
--------------------------------------------------------- */
:root {
  --color-main: #2f7d68;
  --color-main-dark: #1f5948;
  --color-main-light: #dceee7;

  --color-accent: #d89b6d;
  --color-accent-light: #f5e2cf;

  --color-sub: #f3efe6;

  --color-text: #2f3a36;
  --color-text-light: #6f7d77;

  --color-bg: #fffdf8;
  --color-bg-soft: #f4f8f3;
  --color-bg-warm: #fbf5ed;

  --color-white: #ffffff;
  --color-border: #dfe8df;

  --font-base: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --content-width: 1120px;
  --content-narrow: 920px;

  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 34px;
  --radius-xl: 42px;
  --radius-pill: 9999px;

  --shadow-soft: 0 18px 42px rgba(47, 125, 104, 0.13);
  --shadow-card: 0 12px 30px rgba(32, 89, 71, 0.09);
  --shadow-float: 0 22px 54px rgba(32, 89, 71, 0.14);
}


/* ---------------------------------------------------------
   基本リセット
--------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  background: var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
dl,
dt,
dd {
  margin: 0;
}


/* ---------------------------------------------------------
   共通レイアウト
--------------------------------------------------------- */
.l-container {
  width: min(100% - 32px, var(--content-width));
  margin-inline: auto;
}

.c-section {
  padding: 104px 0;
}

.c-section--bg {
  background: var(--color-bg-soft);
}

/* common.css：装飾を使える共通土台 */
.c-section {
  position: relative;
}

.c-section > .l-container {
  position: relative;
  z-index: 1;
}

.c-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* 装飾を使うセクションだけ overflow を管理 */
.has-deco {
  overflow: hidden;
}

/* 1. 薄い丸 */
.c-deco--circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-accent-light);
}

/* 2. ドット柄 */
.c-deco--dots {
  width: 160px;
  height: 160px;
  background-image: radial-gradient(var(--color-accent) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.28;
}

/* 3. ふわっと光 */
.c-deco--blur {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(115, 159, 28, 0.16);
  filter: blur(28px);
}

/* 4. 斜めの帯 */
.c-deco--stripe {
  width: 260px;
  height: 90px;
  border-radius: 999px;
  background: rgba(216, 155, 109, 0.16);
  transform: rotate(-12deg);
}

/* 5. 小さい丸が連なる */
.c-deco--bubble {
  width: 120px;
  height: 120px;
  background:
    radial-gradient(circle at 20% 30%, rgba(47,125,104,.22) 0 12px, transparent 13px),
    radial-gradient(circle at 60% 20%, rgba(216,155,109,.22) 0 18px, transparent 19px),
    radial-gradient(circle at 75% 70%, rgba(47,125,104,.14) 0 26px, transparent 27px);
}
/* 6. 波線 */
.c-deco--wave {
  width: 220px;
  height: 80px;
  opacity: 0.32;
  background:
    radial-gradient(50% 100% at 50% 100%, transparent 58%, rgba(47, 125, 104, 0.28) 60%, transparent 63%) 0 0 / 44px 40px repeat-x;
}

/* 7. 葉っぱモチーフ */
.c-deco--leaf {
  width: 180px;
  height: 180px;
  opacity: 0.22;
  background:
    radial-gradient(ellipse at 35% 50%, rgba(47, 125, 104, 0.42) 0 28%, transparent 29%),
    radial-gradient(ellipse at 65% 50%, rgba(47, 125, 104, 0.28) 0 24%, transparent 25%),
    linear-gradient(45deg, transparent 48%, rgba(47, 125, 104, 0.35) 49%, rgba(47, 125, 104, 0.35) 51%, transparent 52%);
  border-radius: 45% 55% 45% 55%;
  transform: rotate(-18deg);
}

/* 8. 光・きらめき */
.c-deco--light {
  width: 160px;
  height: 160px;
  opacity: 0.28;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 8%, transparent 9%),
    radial-gradient(circle, rgba(216, 155, 109, 0.28) 0 38%, transparent 40%);
  filter: blur(1px);
}





/* ---------------------------------------------------------
   共通見出し
--------------------------------------------------------- */
.c-heading {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.c-heading--left {
  margin-inline: 0;
  text-align: left;
}

.c-heading__sub {
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.c-heading__title {
  color: var(--color-main-dark);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.45;
  font-weight: 700;
}


/* ---------------------------------------------------------
   共通ラベル
--------------------------------------------------------- */
.c-label {
  display: inline-block;
  padding: 8px 17px;
  border-radius: var(--radius-pill);
  background: rgba(216, 155, 109, 0.16);
  color: var(--color-main-dark);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}


/* ---------------------------------------------------------
   共通ボタン
--------------------------------------------------------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 58px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  line-height: 1.5;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    opacity 0.3s ease;
}

.c-btn--primary {
  background: linear-gradient(135deg, var(--color-main), #72b193);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.c-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
  opacity: 0.96;
}

.c-btn--ghost {
  border: 1px solid rgba(47, 125, 104, 0.34);
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-main-dark);
}

.c-btn--ghost:hover {
  background: rgba(47, 125, 104, 0.06);
  transform: translateY(-1px);
}


/* ---------------------------------------------------------
   共通カード
--------------------------------------------------------- */
.c-card {
  padding: 30px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 125, 104, 0.10);
  box-shadow: var(--shadow-card);
}


/* ---------------------------------------------------------
   ヘッダー
--------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 125, 104, 0.10);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.header__logo-sub {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.header__logo-main {
  color: var(--color-main-dark);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.header__nav-list a {
  color: var(--color-text-light);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

.header__nav-list a:hover {
  color: var(--color-main);
}

.header__cta {
  min-width: 160px;
  min-height: 48px;
  padding: 10px 18px;
  font-size: 0.92rem;
}

/*ヘッダーハンバーガー実装*/
.header__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.header__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--color-main-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer-menu {
  position: fixed;
  inset: 72px 16px auto;
  z-index: 99;
  padding: 24px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.drawer-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer-menu__list {
  display: grid;
  gap: 18px;
}

.drawer-menu__list a {
  display: block;
  color: var(--color-main-dark);
  font-weight: 700;
}


/* ---------------------------------------------------------
   フッター
--------------------------------------------------------- */
.footer {
  padding: 40px 0;
  background: #eef5ee;
}

.footer__inner {
  text-align: center;
}

.footer__logo {
  margin-bottom: 8px;
  color: var(--color-main-dark);
  font-weight: 700;
}

.footer__copy {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.fixed-circle-cta {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-main), #72b193);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-float);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.fixed-circle-cta:hover {
  transform: translateY(-3px);
  opacity: 0.94;
}




/* ---------------------------------------------------------
   タブレット調整
--------------------------------------------------------- */
@media (max-width: 960px) {
  .header__inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .header__nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .header__nav-list {
    justify-content: center;
  }
}


/* ---------------------------------------------------------
   スマホ調整
--------------------------------------------------------- */
@media (max-width: 768px) {
  .l-container {
    width: min(100% - 28px, var(--content-width));
  }

  .c-section {
    padding: 72px 0;
  }

  .c-heading {
    margin-bottom: 36px;
    text-align: left;
  }

  .c-heading__sub {
    font-size: 0.78rem;
  }

  .c-heading__title {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .c-btn {
    width: 100%;
    min-width: auto;
  }

  .c-card {
    padding: 24px 20px;
    border-radius: var(--radius-m);
  }

  .header__nav {
    display: none;
  }

  .header__inner {
    min-height: 72px;
    justify-content: space-between;
  }

  .header__logo-main {
    font-size: 1.18rem;
  }

  .header__cta {
    width: auto;
    min-width: auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.86rem;
  }
  /*ハンバーガー実装*/
  .header__nav.drawer-menu.is-open{
    display: block;
  }
    .header__hamburger {
    display: block;
  }

  .header__cta {
    display: none;
  }
    .fixed-circle-cta {
    left: 14px;
    bottom: 16px;
    width: 90px;
    height: 90px;
    font-size: 0.82rem;
  }
}