/* =========================================================
   こん 公式サイト  style.css

   色や大きさの数字は、いちばん上の「色と大きさの決めごと」に
   まとめてあります。直したいときは、まずそこを見てください。
   ========================================================= */


/* ---------- 色と大きさの決めごと ---------- */

:root {
  --bg:          #FBFAF7;  /* 下地。白に近いやさしいベージュ */
  --bg-alt:      #F5F2EC;  /* 少しだけ濃い下地。区切りに使う */
  --card:        #FFFFFF;  /* カードの白 */
  --text:        #33312E;  /* 本文の色。黒より少しやわらかい */
  --text-soft:   #6E6963;  /* 補足の文字 */
  --accent:      #3F6B4F;  /* 深めの緑。アイコンのきつねの目の色 */
  --accent-soft: #E4EDE6;  /* 緑のうすいほう */
  --line:        #E6E1D8;  /* 細い線 */

  --wrap:   720px;  /* 中身の最大の横幅 */
  --radius: 12px;   /* 角の丸み */
}


/* ---------- 全体のならし ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

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

a { color: var(--accent); }

/* 中身の横幅をそろえるための箱 */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}


/* ---------- 上の帯 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
}

.site-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 16px;
}

.site-nav a {
  font-size: 13px;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 上の帯の高さの分だけ、飛び先を下にずらす */
[id] { scroll-margin-top: 72px; }


/* ---------- いちばん上 ---------- */

.hero {
  padding: 56px 0 64px;
  text-align: center;
}

.avatar {
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--accent-soft);
  box-shadow: 0 4px 16px rgba(63, 107, 79, 0.10);
  object-fit: cover;
}

.hero-name {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.10em;
  line-height: 1.4;
}

.hero-catch {
  margin: 0 0 28px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.hero-lead {
  margin: 0 auto 28px;
  max-width: 620px;
  color: var(--text);
  text-align: left;
}

/* 広い画面だけで効く改行。スマホでは無視される */
.br-pc { display: none; }


/* ---------- ボタン ---------- */

.hero-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ---------- 見出しつきのまとまり ---------- */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
}

.prose p {
  margin: 0 0 1.4em;
}

.prose p:last-child {
  margin-bottom: 0;
}


/* ---------- つくったもの ---------- */

.work {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.work-shot img {
  width: 200px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(51, 49, 46, 0.10);
}

.work-body { width: 100%; }

.work-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.work-body p {
  margin: 0 0 1.2em;
}

.work-body .work-tech {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
}

.works-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--text-soft);
  text-align: center;
}


/* ---------- つながる ---------- */

.connect-lead {
  margin: 0 0 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
}


/* ---------- いちばん下 ---------- */

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}


/* ---------- 画面が広いとき（600px以上） ---------- */

@media (min-width: 600px) {
  body { font-size: 16.5px; }

  .hero { padding: 72px 0 80px; }
  .hero-name  { font-size: 34px; }
  .hero-catch { font-size: 19px; }
  .hero-lead  { text-align: center; }
  .br-pc      { display: inline; }

  .site-nav { gap: 22px; }
  .site-nav a { font-size: 14px; }

  .section       { padding: 72px 0; }
  .section-title { font-size: 22px; margin-bottom: 28px; }

  /* 作品は、左に画面の写真・右に文章の2列にする */
  .work {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    padding: 28px;
  }

  .work-shot { flex-shrink: 0; }
  .work-shot img { width: 190px; }
}


/* ---------- ふわっと出る動き ---------- */

/* script が動いたときだけ、いったん透明にしてから出す */
.js .section,
.js .hero .wrap {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .section.is-shown,
.js .hero .wrap.is-shown {
  opacity: 1;
  transform: none;
}

/* 「動きを減らす」設定にしている人には、動かさない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .section,
  .js .hero .wrap {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover { transform: none; }
}
