/* --- 基本 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.zen-maru-gothic-regular {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}


body {
  font-family: "Zen Maru Gothic", serif;
  background: white;
  line-height: 1.8;
}

/* --- トップスクロール禁止 --- */
.home {
  height: 100vh;
  overflow: hidden;
}

/* --- レイアウト --- */
.home-main {
  height: 100vh;
}

.home-layout {
   height: 100%;
  display: flex;
}

/* --- 左イラスト --- */
.home-visual {
  width: 55%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-visual img {
  width: 90%;
  max-height: 80vh;
  object-fit: contain;
}


/* --- 右情報 --- */ 
.home-info {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  max-width: 700px;
  align-items: flex-start;
  gap: 35px;
}


/* タイトル */
.home-title {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.attention-list {
  list-style: none;
  padding-left: 0;
}

.attention-list li {
  padding-left: 1em;
  text-indent: -1em;
  line-height: 2;
  margin-bottom: 0.6em;
}

/* ナビ */
.home-nav {
  display: grid;

  grid-template-columns: repeat(2,180px);
  grid-auto-rows: 56px;

  gap: 1em;
}

.home-nav a:hover {
  background: #f5f768;
  transform: translateY(-2px);
}


.home-nav a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  border-radius: 22px;

  text-align: center;
  background: #9dedca;
  
  text-decoration: none;
  color: black;
 
  letter-spacing: 0.05em;
  transition: 0.2s;
  font-weight: 500;
  min-height: 3.2em;
}

/*---リンク---*/
.home-links a + a::before {
  content: " / ";
}

.links-text{
  font-size: 1rem;
  text-decoration: none;
  color: black;
}

/*---プロフィール---*/
.profile-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8em;
}

.profile-body {
  display: flex;
  align-items: flex-start;
  gap: 1em;
}

.profile-icon {
  width: 72px;
  height: 72px;

  object-fit: cover;
  border-radius: 50%;

  border: 2px solid #ddd;
  flex-shrink: 0;
}

.profile-name {
  margin-top: 0.5em;
}

.profile-desc {
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}


/*---サブページ統一---*/

.subpage{
  padding-top: 80px;
  margin-bottom: 80px;
}

.page-title{
  margin:40px auto 20px;
  display: flex;
  justify-content:center;
  align-items:center;

  gap: 12em;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 24px 40px;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.site-logo {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1;
}


.site-logo a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

h1.site-logo,
h1.site-logo a {
  line-height: 1;
}

.header-nav {
  display: flex;
  gap: 1.4em;
}

.header-nav a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: inline-block;
  line-height: 1;
  font-weight: normal;
}

.header-nav a:hover {
  color: #000;
}



/*---ギャラリー---*/

:root{
  --header-h: 60px; /* 固定ヘッダーの実高さに合わせる */
}

:target{
  scroll-margin-top: 90px;
}

.gallery-tag {

  margin:40px auto 20px;
  display: flex;
  justify-content:center;
  align-items:center;

  gap: 3em;
}

.gallery-tag a{
  display:inline-block;

  padding:6px 14px;         /* ← 控えめサイズ */
  font-size:0.9rem;

  border-radius:20px;       /* 柔らか丸 */
  border:1px solid #ddd;

  text-decoration:none;
  color:#333;
  background:#fff;

  transition:0.2s;
}

.gallery-tag a:hover {
  color: #000;
  background: #f5f768;

}

.gallery-section{
  margin-top: 40px;   /* セクション同士の間隔 */
}

.gallery-heading{
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 16px;
  font-size: 1.1rem;
}

.gallery-grid{
    display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;

 max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 16px;

}

.thumb{
  width: 100%;
  aspect-ratio: 1 / 1;  /* 正方形 */
  object-fit: cover;     /* 綺麗にトリミング */
  display: block;
  cursor: pointer;
  border-radius: 12px;   /* 好みで */
}

.work {
  width: 100%;
}

.work img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  display: block;

  transition: 0.3s;
}

.work:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.work-meta {
  margin-top: 8px;
  text-align: center;
}

.work-title {
  font-size: 0.95rem;
  line-height: 1.4;
}

.work-date {
  margin-top: 2px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.caption {
  font-size: 0.85rem;
  margin-top: 8px;
  text-align: center;
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;

  justify-content: center;
  align-items: center;

  z-index: 9999;
}



.lightbox img {
  max-width: 90%;
  max-height: 85%;

  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.lightbox.show {
  opacity: 1;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
}

.prev { left: 20px; }
.next { right: 20px; }

.counter {
  position: absolute;
  bottom: 30px;
  color: white;
  font-size: 14px;
}


/*--- コミック---*/

.comic-viewer {
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 0 20px;
}

.comic-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.comic-page-image {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
}


.comic-title {
  text-align: center;
  margin: 24px 0 10px;
}

.comic-description {
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.comic-tags {
  text-align: center;
  margin-bottom: 30px;
}

.comic-tag {
  font-size: 12px;
  margin: 0 6px;
  opacity: 0.7;
}


.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px;

 max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 16px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-cover {
  display: block;
  width: 100%;
  aspect-ratio: 148 / 210;
  object-fit: cover;
}

.shop-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-title {
  font-size: 1rem;
  margin: 0;
}

.shop-spec {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0;
}

.shop-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.shop-button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  width: fit-content;
}


.blog-page {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.8;
}

/* ===== blog layout only ===== */

.blog-page .blog-layout {

  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
  margin-top: 90px;
}


.blog-page main {
  min-width: 0;
  margin: 0;
}

.blog-page aside {
  min-width: 0;
  margin: 0;
}

.blog-page img {
  max-width: 100%;
  height: auto;
}

.blog-page footer {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.blog-page .postarea,
.blog-page article,
.blog-page .area-main {
  margin-bottom: 40px;
}

.blog-page aside section {
  margin-bottom: 32px;
}


.blog-page .site-logo,
.blog-page h1.site-logo,
.blog-page .site-logo a,
.blog-page h1.site-logo a {
  font-weight: normal;
}


/* =========================
   📱 スマホ（768px以下）
========================= */

@media (max-width: 768px) {

  /* ===== 固定ヘッダー ===== */
  .site-header {
    padding: 12px 16px;
  }

  .site-logo {
    font-size: 1rem;
  }

  .site-logo a {
    font-size: 1rem;
    letter-spacing: 0.03em;
  }

  .header-nav {
    gap: 0.7em;
  }

  .header-nav a {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
  }

  /* ===== サブページ共通 ===== */
  .subpage {
    padding-top: 72px;
    margin-bottom: 60px;
  }

  .page-title {
    margin: 24px auto 16px;
    gap: 1.5em;
    flex-wrap: wrap;
  }

  /* ===== ホームを1カラム ===== */
  .home-layout {
    flex-direction: column;
    height: auto;
  }

  .home {
    height: auto;
    overflow: visible;
  }

  .home-main {
    height: auto;
  }

  .home-visual,
  .home-info {
    width: 100%;
  }

  .home-visual {
    padding: 24px 16px 8px;
  }

  .home-visual img {
    width: 100%;
    max-height: none;
  }

  .home-info {
    padding: 16px;
    gap: 24px;
  }

  .home-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  .attention-list li {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .home-nav {
    grid-template-columns: 1fr;
    grid-auto-rows: 52px;
    gap: 0.8em;
    width: 100%;
  }

  .home-nav a {
    font-size: 1rem;
  }

  .profile-title {
    font-size: 1.05rem;
  }

  .profile-body {
    gap: 0.8em;
  }

  .profile-icon {
    width: 64px;
    height: 64px;
  }

  .profile-desc {
    font-size: 0.95rem;
  }

  /* ===== ギャラリー ===== */
  .gallery-tag {
    margin: 24px auto 16px;
    gap: 0.7em;
    flex-wrap: wrap;
    padding: 0 12px;
  }

  .gallery-tag a {
    font-size: 0.95rem;
    padding: 7px 14px;
  }

  .gallery-heading {
    margin: 24px auto 0;
    padding: 0 12px;
    font-size: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px auto 0;
    padding: 0 12px;
  }

  .work-title {
    font-size: 1rem;
    line-height: 1.5;
  }

  .work-date {
    font-size: 0.9rem;
  }

  .caption {
    font-size: 0.95rem;
  }

  /* ===== コミック ===== */
  .comic-viewer {
    max-width: 100%;
    margin: 90px auto 60px;
    padding: 0 16px;
  }

  .comic-title {
    font-size: 1.35rem;
    margin: 20px 0 12px;
  }

  .comic-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .comic-tags {
    margin-bottom: 24px;
  }

  .comic-tag {
    font-size: 0.9rem;
    margin: 0 4px;
  }

  .comic-images {
    gap: 16px;
  }

  /* ===== ブログ ===== */
  .blog-page .blog-layout {
    display: block;
    padding: 0 16px;
  }

  .blog-page aside {
    margin-top: 40px;
  }

  .blog-page aside h2 {
    font-size: 1.05rem;
  }

  .blog-page main,
  .blog-page aside,
  .blog-page footer {
    font-size: 0.98rem;
  }
}