@charset "UTF-8";
/* =========================================================
   マシュマロノート / Marshmallow Notes
   個人ブログサイト共通スタイル
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ---------- Design tokens ---------- */
:root{
  /* base */
  --color-bg:        #FFFBF6;
  --color-surface:   #FFFFFF;
  --color-text:      #3A3550;
  --color-text-soft: #756E8C;
  --color-border:    #F0E6E0;

  /* pastel palette */
  --color-pink:      #FF9EB5;
  --color-pink-soft: #FFE3EA;
  --color-blue:      #6FC9DE;
  --color-blue-soft: #DDF4F8;
  --color-yellow:    #FFCE5C;
  --color-yellow-soft:#FFF2D2;
  --color-mint:      #6FD3AE;
  --color-mint-soft: #DEF6EB;
  --color-purple:    #B89AF0;
  --color-purple-soft:#EFE6FF;

  /* type */
  --font-display: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-body:    'Noto Sans JP', 'Hiragino Sans', sans-serif;

  /* layout */
  --max-width: 1080px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-pop: 0 14px 30px -12px rgba(58, 53, 80, 0.18);
  --shadow-pop-sm: 0 8px 18px -10px rgba(58, 53, 80, 0.2);

  --header-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,figure{ margin: 0; }
button{ font: inherit; cursor: pointer; }
input, textarea{ font: inherit; }

:focus-visible{
  outline: 3px solid var(--color-purple);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-pink);
}
.eyebrow::before{
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-pink);
}

/* ---------- Marshmallow blobs (signature decoration) ---------- */
.blob{
  position: absolute;
  filter: blur(0.5px);
  z-index: 0;
  opacity: 0.9;
  animation: float 9s ease-in-out infinite;
}
.blob--a{ border-radius: 58% 42% 38% 62% / 60% 38% 62% 40%; background: var(--color-pink-soft); }
.blob--b{ border-radius: 42% 58% 64% 36% / 40% 62% 38% 60%; background: var(--color-blue-soft); }
.blob--c{ border-radius: 50% 50% 38% 62% / 55% 45% 55% 45%; background: var(--color-yellow-soft); }
.blob--d{ border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%; background: var(--color-mint-soft); }

@keyframes float{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-16px) rotate(6deg); }
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .wrap{
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--color-text);
}
.logo-mark{
  width: 34px; height: 34px;
  border-radius: 60% 40% 55% 45% / 55% 45% 55% 45%;
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
  flex-shrink: 0;
}
.logo small{
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
}

.nav{
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--color-text-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav a:hover{ transform: translateY(-2px); }
.nav a.is-active{ color: var(--color-text); }
.nav a[data-accent="pink"].is-active,   .nav a[data-accent="pink"]:hover{ background: var(--color-pink-soft); }
.nav a[data-accent="blue"].is-active,   .nav a[data-accent="blue"]:hover{ background: var(--color-blue-soft); }
.nav a[data-accent="yellow"].is-active, .nav a[data-accent="yellow"]:hover{ background: var(--color-yellow-soft); }
.nav a[data-accent="mint"].is-active,   .nav a[data-accent="mint"]:hover{ background: var(--color-mint-soft); }

.menu-btn{
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: var(--color-surface);
  border-radius: 50%;
  box-shadow: var(--shadow-pop-sm);
  position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after{
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-btn::before{ top: 16px; }
.menu-btn span{ top: 21px; }
.menu-btn::after{ top: 26px; }
.menu-btn.is-open::before{ transform: translateY(5px) rotate(45deg); }
.menu-btn.is-open::after{ transform: translateY(-5px) rotate(-45deg); }
.menu-btn.is-open span{ opacity: 0; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero .blob--a{ width: 220px; height: 220px; top: -60px; right: -40px; }
.hero .blob--b{ width: 140px; height: 140px; bottom: -30px; left: 8%; animation-delay: -3s; }
.hero .blob--c{ width: 90px; height: 90px; top: 40px; left: 38%; animation-delay: -6s; }

.hero-inner{ position: relative; z-index: 1; max-width: 640px; }
.hero h1{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.35;
  margin-top: 14px;
}
.hero p{
  margin-top: 16px;
  color: var(--color-text-soft);
  font-size: 16px;
}

/* ---------- Card grid ---------- */
.section{ padding: 8px 0 80px; position: relative; }
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
}

.filter-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.chip{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-soft);
  transition: all 0.2s ease;
}
.chip:hover{ transform: translateY(-2px); box-shadow: var(--shadow-pop-sm); }
.chip.is-active{
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card{
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover{ transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 22px 34px -14px rgba(58,53,80,0.26); }

.post-card-thumb{
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.post-card-thumb::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(58,53,80,0.18) 100%);
}

.tag-sticker{
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 999px;
  transform: rotate(-4deg);
  box-shadow: var(--shadow-pop-sm);
  color: #4a3f3f;
}

.post-card-body{
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card time{
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-text-soft);
  font-weight: 500;
}
.post-card h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
}
.post-card .excerpt{
  font-size: 13.5px;
  color: var(--color-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skeleton{
  background: linear-gradient(100deg, var(--color-border) 30%, #fff 50%, var(--color-border) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-lg);
}
@keyframes shimmer{ 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }

.state-msg{
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-soft);
  font-size: 14px;
}
.state-msg strong{ display:block; font-family: var(--font-display); font-size: 17px; color: var(--color-text); margin-bottom: 6px; }

.load-more-wrap{ text-align: center; margin-top: 44px; }
.btn{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  background: var(--color-text);
  color: #fff;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:disabled{ opacity: 0.5; cursor: default; transform: none; }
.btn--ghost{
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ---------- Post detail ---------- */
.post-detail{ padding: 48px 0 90px; }
.post-detail-head{ max-width: 760px; margin: 0 auto 32px; }
.post-detail-head .tag-sticker{ position: static; display: inline-flex; transform: rotate(-3deg); margin-bottom: 16px; }
.post-detail-head h1{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.5;
  margin-bottom: 14px;
}
.post-detail-head time{ color: var(--color-text-soft); font-size: 13px; }

.post-detail-thumb{
  max-width: 880px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.post-detail-thumb img{ width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.post-body{
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
}
.post-body h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 6px solid var(--color-pink-soft);
}
.post-body h3{ font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 32px 0 12px; }
.post-body p{ margin: 0 0 20px; }
.post-body img{ border-radius: var(--radius-md); margin: 24px 0; }
.post-body a{ color: var(--color-blue); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol{ margin: 0 0 20px; padding-left: 1.4em; }
.post-body li{ margin-bottom: 8px; }
.post-body blockquote{
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--color-yellow-soft);
  border-radius: var(--radius-md);
  font-style: normal;
}
.post-body pre{
  background: #3A3550;
  color: #FFE3EA;
  padding: 18px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 13.5px;
}

.post-nav{
  max-width: 760px;
  margin: 56px auto 0;
  text-align: center;
}

/* ---------- Profile page ---------- */
.profile-hero{
  position: relative;
  padding: 60px 0 0;
  overflow: hidden;
}
.profile-card{
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 44px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}
.profile-card--no-avatar{
  grid-template-columns: 1fr;
}
.avatar-mark{
  width: 180px; height: 180px;
  border-radius: 58% 42% 45% 55% / 50% 55% 45% 50%;
  background: linear-gradient(150deg, var(--color-pink-soft), var(--color-blue-soft) 60%, var(--color-yellow-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.profile-card h1{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 6px;
}
.profile-card .role{ color: var(--color-pink); font-weight: 700; font-family: var(--font-display); font-size: 13px; margin-bottom: 16px; }
.profile-card .bio{ color: var(--color-text-soft); font-size: 14.5px; max-width: 640px; }

.sns-row{ display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.sns-row a{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.sns-row a:hover{ transform: translateY(-3px) scale(1.05); background: var(--color-pink-soft); }

.info-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 56px 0;
}
.info-block{
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-pop-sm);
}
.info-block .icon{ font-size: 26px; margin-bottom: 12px; display:block; }
.info-block h3{ font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.info-block p{ font-size: 13.5px; color: var(--color-text-soft); }

.skill-list{ display: flex; flex-wrap: wrap; gap: 8px; }
.skill-list li{
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-mint-soft);
  color: #2f6c52;
}

.timeline{ max-width: 640px; margin: 0 auto 80px; }
.timeline li{
  position: relative;
  padding: 0 0 32px 32px;
  border-left: 2px dashed var(--color-border);
}
.timeline li:last-child{ border-color: transparent; padding-bottom: 0; }
.timeline li::before{
  content: "";
  position: absolute; left: -7px; top: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-purple);
}
.timeline .year{ font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--color-purple); }
.timeline h4{ font-family: var(--font-display); font-size: 15px; margin: 4px 0 6px; }
.timeline p{ font-size: 13.5px; color: var(--color-text-soft); }

/* ---------- Contact page ---------- */
.contact-section{ padding: 64px 0 100px; position: relative; overflow: hidden; }
.contact-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}
.contact-intro h1{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 34px);
  margin: 12px 0 16px;
}
.contact-intro p{ color: var(--color-text-soft); font-size: 14.5px; }
.contact-intro ul{ margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-intro li{ display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--color-text-soft); }
.contact-intro .ico{
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-pink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.contact-form{
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 36px;
}
.field{ margin-bottom: 22px; }
.field label{
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.field .required{ color: var(--color-pink); margin-left: 4px; font-size: 11px; }
.field input, .field textarea{
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus{
  border-color: var(--color-pink);
  background: #fff;
  outline: none;
}
.field textarea{ min-height: 140px; resize: vertical; }
.field .error{ display:none; color: #E0567A; font-size: 12px; margin-top: 6px; }
.field.has-error input, .field.has-error textarea{ border-color: #E0567A; }
.field.has-error .error{ display: block; }

.form-msg{
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 20px;
  font-weight: 500;
}
.form-msg.is-success{ display:block; background: var(--color-mint-soft); color: #2f6c52; }
.form-msg.is-error{ display:block; background: var(--color-pink-soft); color: #b3315a; }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 40px;
}
.site-footer .wrap{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer p{ font-size: 12.5px; color: var(--color-text-soft); }
.footer-nav{ display: flex; gap: 18px; }
.footer-nav a{ font-size: 13px; color: var(--color-text-soft); }
.footer-nav a:hover{ color: var(--color-pink); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .profile-card{ grid-template-columns: 1fr; text-align: center; padding: 36px; }
  .profile-card--no-avatar{ text-align: left; }
  .avatar-mark{ margin: 0 auto; }
  .sns-row{ justify-content: center; }
  .profile-card--no-avatar .sns-row{ justify-content: flex-start; }
  .info-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 680px){
  :root{ --header-height: 64px; }
  .nav{
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav.is-open{ transform: translateY(0); opacity: 1; }
  .nav a{ padding: 14px 16px; }
  .menu-btn{ display: block; }

  .hero{ padding: 40px 0 36px; }
  .card-grid{ grid-template-columns: 1fr; gap: 22px; }
  .info-grid{ grid-template-columns: 1fr; }
  .profile-card{ padding: 28px; }
  .contact-form{ padding: 24px; }
  .post-detail-head .tag-sticker{ margin-bottom: 12px; }
  .section-head{ flex-direction: column; align-items: flex-start; }
}
