/* =========================
   I-BUKI.Lab Portfolio
   - 画像は assets/ を想定（お好きに変更OK）
   - 色はカンプに寄せて「黄×黄緑」基調
========================= */

/* ---- CSS Variables ---- */
:root {
  --bg: #ffffff;
  --text: #333;
  --muted: #666;

  --accent-yellow: #f5c21b;
  /* メインボタン */
  --accent-green: #a7c94b;
  /* ライン/見出しアクセント */
  --accent-blue: #6bb6d7;
  /* 泡の青っぽい色 */

  --border: #d9d9d9;

  --container: 1100px;
  --radius: 14px;
}

/* ---- Base ---- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 300;
  /* ←追加：全体を細く */
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  margin: 0 2.5%;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 5px 18px;
  border-radius: 999px;
  font-weight: 500;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background-color: #f5c21b;
  color: #fff;
}

.btn--primary:hover {
  background-color: #fff;
  color: #f5c21b;
  border-color: #f5c21b;
}

.btn--ghost {
  background-color: #6bb6d7;
  color: #fff;
}

.btn--ghost:hover {
  background-color: #fff;
  color: #6bb6d7;
  border-color: #6bb6d7;
}

.btn--xl {
  padding: 16px 30px;
  font-size: 18px;
}

/* =========================
   Header
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* ← space-between をやめる */
  padding: 14px 0;
  gap: 16px;
}

.brand {
  margin-right: auto;
  /* ←ロゴは左固定、他は右へ */
  display: flex;
  align-items: center;
}

.brand__logo {
  height: 42px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  /* 下線の基準をリンク幅にする */
  padding: 6px 2px;
  /* クリックしやすく */
  font-size: 16px;
  color: #555;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px;
  /* 文字の少し下に線 */
  width: 100%;
  height: 1px;
  background: #111;
  /* #a7c94b */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav__link:hover {
  color: #111;
}

.nav__link:hover::after {
  transform: scaleX(1);
}


/* =========================
   Hero
========================= */
.all{
  width: 80%;
  align-items: center;
  margin: auto;
}

.hero {
  position: relative;
  display: flex;
}

.hero-inner {
  width: 90%;
  height: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;


  /* ▼背景画像（差し替え） */
  background-image: url("img/top.svg");
  /* ←あなたの画像パス */
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  /* ←横幅をdiv幅に合わせる */
}

.hero-copy {
  align-items: center;
  justify-content: center;
}

.hero-sub {
  margin: 0 0 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 右側ビジュアル（泡・花・赤ちゃんのダミー） */
.hero-visual {
  position: relative;
  height: 260px;
}

.bubble {
  position: absolute;
  border: 2px solid rgba(107, 182, 215, .9);
  border-radius: 999px;
  background: rgba(107, 182, 215, .06);
}

.b1 {
  width: 70px;
  height: 70px;
  right: 70px;
  top: 30px;
}

.b2 {
  width: 34px;
  height: 34px;
  right: 40px;
  top: 120px;
}

.b3 {
  width: 18px;
  height: 18px;
  right: 130px;
  top: 150px;
}

.flower {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(245, 194, 27, .9);
  box-shadow: 0 0 0 8px rgba(245, 194, 27, .20) inset;
}

.f1 {
  right: 18px;
  top: 152px;
}

.f2 {
  right: 70px;
  top: 184px;
  transform: scale(.8);
}

.f3 {
  right: 0;
  top: 200px;
  transform: scale(.6);
}

.baby-silhouette {
  position: absolute;
  right: 72px;
  bottom: 0;
  width: 110px;
  height: 90px;
  border-radius: 40px 40px 24px 24px;
  background: rgba(245, 194, 27, .9);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .10));
  transform: skewX(-8deg);
}

.baby-text {
  position: absolute;
  right: 90px;
  top: 120px;
  font-size: 16px;
  color: rgba(107, 182, 215, .9);
  font-weight: 700;
  transform: rotate(-8deg);
}

/* 波ライン */
.hero-wave {
  margin-top: 26px;
  color: var(--accent-green);
}

.hero-wave svg {
  width: 100%;
  height: 90px;
  display: block;
}

/* 中央キッカー */
.section-kicker {
  text-align: center;
  margin: 8px 0 0;
  color: var(--accent-green);
  font-weight: 800;
  letter-spacing: .02em;
}

/* =========================
   Sections common
========================= */
.section {
  padding: 56px 0;
}

.section--tight {
  padding: 10px 0 24px;
}

.section--shade {
  background: #fff;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 26px;
}

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
}

/* 左右の “線＋点” */
.line-dot {
  position: relative;
  width: 220px;
  height: 2px;
  background: #6bb6d7;
}

.line-dot::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #6bb6d7;
}

.line-dot--right::after {
  left: auto;
  right: -10px;
}

/* =========================
   Cards
========================= */
.cards {
  display: grid;
  gap: 22px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 16px;
}

.card__title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.card__title--accent {
  color: var(--accent-green);
}

.card__media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #f6f6f6;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__text {
  margin: 12px 0 0;
  color: #555;
  font-size: 16px;
  text-align: center;
}

/* Reason cards 少しフラットに */
.cards--reason .card {
  box-shadow: none;
}

.card--flat {
  padding: 18px 18px 20px;
}

.reason-title {
  margin: 0 0 10px;
  text-align: center;
  color: var(--accent-green);
  font-size: 16px;
  font-weight: 900;
}

/* =========================
   Office Box
========================= */
.office-box {
  position: relative;
  margin: 26px 300px 26px 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  background: #fff;
}

.office-box__title {
  margin: 0 0 8px;
  text-align: center;
  color: var(--accent-green);
  font-size: 16px;
  font-weight: 900;
}

.office-box__text {
  margin: 0;
  text-align: center;
  color: #555;
  font-size: 16px;
}

.office-box__baby {
  position: absolute;
  right: 14px;
  width: 120px;
  bottom: -90px;
  height: 120px;
  border-radius: 40px;

}

/* =========================
   Profile
========================= */
.profile-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.profile-left {
  position: relative;
  min-height: 320px;
}

.profile-logo {
  width: 250px;
  margin: 0 auto 18px;
}

.profile-illust {
  position: absolute;
  left: 0;
  top: 200px;
  width: 500px;
  height: 500px;
  z-index: -1;
  /* ←最背面 */
  pointer-events: none;
}

/* 右側文章 */
.profile-name {
  margin: 0 0 10px;
  font-weight: 900;
  color: #444;
}

.profile-desc {
  margin: 0 0 16px;
  color: #555;
  font-size: 16px;
}

.profile-skill {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding-top: 14px;
}

.profile-skill__title {
  margin: 0 0 8px;
  font-weight: 900;
  color: #444;
}

.profile-skill__list {
  margin: 0;
  padding-left: 18px;
  color: #555;
  font-size: 16px;
}

/* =========================
   CTA
========================= */
.cta {
  margin-top: 42px;
  text-align: center;
}

.cta__text {
  margin: 0 0 16px;
  color: #555;
  font-weight: 700;
}

/* =========================
   Footer
========================= */
.site-footer {
  padding: 50px 0;

}

.footer-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
  position: relative;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 16px;
  color: #555;
}

.footer-nav a:hover {
  color: #111;
}

.footer-logo {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 44px;
  width: auto;
  opacity: .95;
}

copyright,
.copyright {
  font-size: 14px;
  color: #777;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 220px;
  }

  .cards--3 {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-left {
    min-height: 240px;
  }

  .footer-logo {
    position: static;
  }

  .nav {
    display: none;
    /* スマホはハンバーガー化するならJS追加で */
  }
}

/* =========================
   mailform
========================= */

.contact-form{
  max-width: 560px;      /* ←ここで「罫線の長さ（統一）」を決める */
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: left;

  /* フォント固定（ボタンも含めて統一） */
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.contact-form *{
  box-sizing: border-box;
}

.contact-form .cf-label{
  display: grid;
  gap: 8px;
}

.contact-form .cf-title{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
}

.contact-form .cf-req{
  color: #d33;           /* 必須を赤 */
  font-weight: 700;
  font-size: 0.9em;
}

/* 背景つき入力欄（ふんわり） */
.contact-form .cf-input,
.contact-form .cf-textarea{
  width: 100%;
  border: 1px solid #a7c94b;
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
  font: inherit;

  background: #f8ffe6; /* ←通常時の背景（薄い黄緑） */
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* テキストエリア調整 */
.contact-form .cf-textarea{
  resize: vertical;
  padding-top: 10px;
  padding-bottom: 12px;
}

/* フォーカス時 */
.contact-form .cf-input:focus,
.contact-form .cf-textarea:focus{
  border-color: #a7c94b;
  background: #f3fdd5;   /* ←背景色（薄い黄緑） */
  box-shadow: 0 0 0 3px rgba(167, 201, 75, .20);
}

/* 送信ボタン */
.contact-form .cf-btn{
  width: fit-content;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #a7c94b;
  background: transparent;
  font: inherit;         /* ←ボタンもフォント統一 */
  font-weight: 700;
  cursor: pointer;

  transition: background-color .2s ease, border-color .2s ease, transform .05s ease;
}

.contact-form .cf-btn:hover{
  background: #f3fdd5;   /* ←薄めホバー */
  border-color: #a7c94b;
}

.contact-form .cf-btn:active{
  transform: translateY(1px);
}

.contact-form .cf-btn:focus-visible{
  outline: 2px solid rgba(167, 201, 75, .35);
  outline-offset: 2px;
}

.contact-form .cf-msg{
  min-height: 1.5em;
  opacity: .8;
}

/* =========================
   work_page
========================= */

.work_top{
  margin-top: 300px;
}

.work {
  width: 1000px;
  height: 650px;
  display: flex;
  align-items: center;
  margin: auto;
}

.work_left {
  width: 500px;
  height: 650px;
  justify-content: center;
  align-items: center;
}

.work_right {
  width: 500px;
  height: 650px;
  justify-content: center;
  align-items: center;
}

.work_text{
  margin: 12px 0 0;
  color: #555;
  font-size: 16px;
  text-align: center;
}
.graphic {
  justify-content: center;
  align-items: center;
}


@media (min-width: 640px) {
  .c-form__item {
    flex-wrap: nowrap;
  }

  .c-form__label {
    width: 40%;
  }

  .c-form__input {
    width: 55%;
  }
}