/* ===== saetag — city pop × ocean (ハナヒゲウツボ) theme ===== */
:root {
  --ink: #12283d;          /* 文字（深海インク） */
  --ink-soft: #54697b;     /* 補助文字 */
  --cream: #f4efe4;        /* ベース（砂浜のクリーム） */
  --cream-2: #ece4d4;
  --line: #e1d8c6;

  /* 海＋ハナヒゲウツボの配色 */
  --sea-deep: #0b2c4d;     /* 深い海 */
  --sea: #1f74b5;          /* 海ブルー */
  --aqua: #2ec6c6;         /* アクア */
  --eel-blue: #12a5e8;     /* ハナヒゲウツボの電気ブルー */
  --eel-yellow: #ffce3a;   /* ヒレ・口先の黄色 */
  --coral: #ff7e6b;        /* 夕日のコーラル（差し色） */

  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic",
    Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.container { width: 90%; max-width: var(--max); margin: 0 auto; }
a { color: inherit; text-decoration: none; }

/* 英字見出しは少しレトロに */
.logo, .hero-label, .hero h1, .section-title, .cover-name, .cover-no, .scroll-cue {
  font-family: "Futura", "Century Gothic", "Helvetica Neue", Georgia, serif;
  letter-spacing: .08em;
}

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 239, 228, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo { display: flex; align-items: center; font-weight: 700; font-size: 1.35rem; }
.logo .reg { font-size: .7rem; vertical-align: super; color: var(--eel-blue); margin-left: 1px; }
/* ロゴ横の丸マーク（images/icon.png が入れば表示、無ければ海グラデ） */
.logo-mark {
  width: 28px; height: 28px; border-radius: 50%; margin-right: .55rem;
  background: linear-gradient(140deg, var(--eel-blue), var(--aqua)) center/cover no-repeat;
  background-image: url("../images/icon.jpg"), linear-gradient(140deg, var(--eel-blue), var(--aqua));
  background-size: cover;
  box-shadow: 0 2px 8px rgba(18, 165, 232, .3);
}
.nav a {
  margin-left: 1.6rem; font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  transition: color .15s;
}
.nav a:hover { color: var(--eel-blue); }

/* ===== ヒーロー（海に沈む夕日） ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 130px;
  color: #f3fbff;
  background:
    linear-gradient(180deg,
      #07203f 0%,
      #0e3a63 28%,
      #1f74b5 52%,
      #2ec6c6 74%,
      #ffd98a 92%,
      #ffce3a 100%);
}
/* 海に沈む夕日 */
.sun {
  position: absolute; left: 50%; bottom: -110px; transform: translateX(-50%);
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff0b0 0%, #ffce3a 40%, rgba(255,206,58,0) 70%);
  filter: blur(2px); opacity: .92;
}
/* 海面のきらめき（横ライン） */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-label {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .35em; margin: 0 0 1.2rem; opacity: .92;
}
.hero h1 {
  font-size: clamp(3.2rem, 15.5vw, 9.5rem); line-height: .95; margin: 0;
  font-weight: 800; letter-spacing: .04em;
  text-shadow: 0 4px 40px rgba(7, 32, 63, .45);
}
.hero-dot { color: var(--eel-yellow); text-shadow: 0 0 28px rgba(255, 206, 58, .55); }
.lead {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 1.05rem; opacity: .94; margin: 0 0 2.4rem; letter-spacing: .02em;
}
.scroll-cue {
  display: inline-block; font-size: .85rem; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 999px;
  padding: 9px 22px; color: #f3fbff; transition: background .2s, color .2s;
}
.scroll-cue:hover { background: #f3fbff; color: var(--sea); }

/* ===== セクション共通 ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--cream-2); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: 1.7rem; font-weight: 700; margin: 0 0 .3rem;
  display: inline-block; position: relative;
}
.section-title::after {
  content: ""; display: block; width: 38px; height: 3px; margin: .5rem auto 0;
  background: linear-gradient(90deg, var(--sea), var(--aqua), var(--eel-yellow));
  border-radius: 2px;
}
.section-sub { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ===== ギャラリー（主役） ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.8rem;
}
.tile {
  display: block; border-radius: 18px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(20, 70, 110, .1);
  transition: transform .16s ease, box-shadow .16s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20, 70, 110, .2); }

/* Coming Soon は控えめにグレーアウト＆操作不可（ホバーもクリックもしない） */
.tile-soon { opacity: .62; box-shadow: 0 8px 20px rgba(20, 70, 110, .07); pointer-events: none; cursor: default; }
.tile-soon .cover { filter: grayscale(.55) brightness(.97); }
.tile-soon:hover { transform: none; box-shadow: 0 8px 20px rgba(20, 70, 110, .07); }

/* ジャケ写風カバー = 「背景＋まる」共通フォーマット
   新作アプリは t? .cover で --bg-a/--bg-b（背景）と --orb-core（まる）を指定するだけ */
.cover {
  position: relative; aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem 1.2rem; color: #fff;
  overflow: hidden;
  /* 既定（青＝アプリ） */
  --bg-a: #12a5e8; --bg-b: #134a93;
  --orb: #fff3cf; --orb-core: #ffce3a; --orb-glow: rgba(255,206,58,.45);
  background: linear-gradient(160deg, var(--bg-a), var(--bg-b));
}
/* まる（各アプリの世界観を一個で表す） */
.cover-orb {
  position: absolute; left: 50%; top: 43%; transform: translate(-50%, -50%);
  z-index: 1; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 62% 38%, #fff 0%, var(--orb) 34%, var(--orb-core) 100%);
  box-shadow: 0 0 46px 10px var(--orb-glow);
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover::after { /* レトロ格子＋下グラデ */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.30), rgba(0,0,0,0) 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.cover-no {
  position: absolute; top: .9rem; left: 1.1rem; z-index: 1;
  font-size: .8rem; font-weight: 700; opacity: .85; letter-spacing: .15em;
}
.cover-name {
  position: relative; z-index: 1;
  font-size: 1.5rem; font-weight: 800; letter-spacing: .03em;
  text-shadow: 0 2px 14px rgba(0,0,0,.32);
}
/* アプリ別テーマ：背景の2色（--bg-a/--bg-b）＋まるの色（--orb-core） */
/* TOTONO — 朝のブルー（青＝アプリ）にやわらかな白いまる */
.t1 .cover { --bg-a:#1f74b5; --bg-b:#2ec6c6; --orb:#ffffff; --orb-core:#dff3ff; --orb-glow:rgba(223,243,255,.5); }
/* endlight — 夜空に金の月（LPと同じ世界観） */
.t2 .cover { --bg-a:#0b1233; --bg-b:#1b2452; --orb:#ffd56b; --orb-core:#ff9e1b; --orb-glow:rgba(255,158,27,.6); }
/* Coming Soon — 静かなスレート、ほのかなまる */
.t3 .cover { --bg-a:#33415c; --bg-b:#1f2738; --orb:#aebbcf; --orb-core:#7384a0; --orb-glow:rgba(159,176,200,.28); }
.t4 .cover { --bg-a:#0b2c4d; --bg-b:#1f9ab5; --orb:#cfeeff; --orb-core:#6fd0e8; --orb-glow:rgba(111,208,232,.4); }

/* endlight の夜空にだけ、ちいさな星 */
.t2 .cover::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.7;
  background-image:
    radial-gradient(1px 1px at 18% 28%, #fff 50%, transparent),
    radial-gradient(1px 1px at 72% 22%, #fff 50%, transparent),
    radial-gradient(1.4px 1.4px at 50% 62%, #fff 50%, transparent),
    radial-gradient(1px 1px at 86% 50%, #fff 50%, transparent),
    radial-gradient(1px 1px at 30% 72%, #fff 50%, transparent);
}

.tile-meta { padding: 1.1rem 1.2rem 1.3rem; }
.tile-titlerow { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.tile-meta h3 { margin: 0; font-size: 1.12rem; }
.tile-meta p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .92rem; }

.status { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status.live { background: #d9f3ef; color: #128a7e; }
.status.dev  { background: #def0fb; color: #1f74b5; }
.status.idea { background: #fff2cf; color: #c89412; }

/* ===== About ===== */
.about-inner { max-width: 640px; text-align: center; margin: 0 auto; }
.avatar {
  width: 96px; height: 96px; margin: 0 auto 1.2rem; border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(18, 165, 232, .28);
  background: linear-gradient(140deg, var(--eel-blue), var(--aqua)) center/cover no-repeat;
  background-image: url("../images/icon.jpg"), linear-gradient(140deg, var(--eel-blue), var(--aqua));
  background-size: cover;
}
.about-inner .section-title { display: inline-block; }
.about-inner p { font-size: 1.05rem; }
.about-note { font-size: .82rem; color: var(--ink-soft); opacity: .8; }

.creations-note {
  text-align: center; margin: 2.4rem 0 0;
  color: var(--ink-soft); font-size: .9rem; letter-spacing: .02em;
}

/* ===== Lab ===== */
.log-list { max-width: 620px; margin: 0 auto; }
.log-entry {
  display: flex; align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20, 70, 110, .1);
  text-align: left;
}
.log-cover {
  flex: none; width: 150px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #5a3d00;
  background: linear-gradient(140deg, #ffd86b, #ffb13d);
  font-family: "Futura", "Century Gothic", "Helvetica Neue", Georgia, serif;
}
.log-cover::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.log-cover-no { position: relative; z-index: 1; font-size: 2.7rem; font-weight: 800; line-height: 1; }
.log-cover-name { position: relative; z-index: 1; font-size: .62rem; letter-spacing: .22em; margin-top: .25rem; opacity: .8; }
.log-body { flex: 1; min-width: 0; padding: 1.3rem 1.5rem; }
.log-titlerow { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.log-body h3 { margin: 0; font-size: 1.15rem; }
.log-body > p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .93rem; }
.log-body .log-links { margin-top: .9rem; font-size: .9rem; }
.log-links a { font-weight: 700; color: var(--sea); }
.log-links a:hover { text-decoration: underline; }
.log-links .sep { color: var(--ink-soft); margin: 0 .5rem; }

@media (max-width: 520px) {
  .log-entry { flex-direction: column; }
  .log-cover { width: 100%; height: 96px; flex-direction: row; gap: .6rem; }
  .log-cover-name { margin-top: 0; }
}

/* ===== Contact ===== */
.contact-inner { text-align: center; }
.mail-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .6rem; padding: .6rem 1.3rem;
  font-family: inherit;
  letter-spacing: normal; font-size: .98rem; font-weight: 700;
  color: var(--ink);
  background: #fff; border: 2px solid var(--eel-blue); border-radius: 999px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.mail-btn .ico { width: 18px; height: 18px; color: var(--eel-blue); transition: color .15s; }
.mail-btn:hover { background: var(--eel-blue); color: #fff; box-shadow: 0 8px 20px rgba(18,165,232,.3); }
.mail-btn:hover .ico { color: #fff; }
.support-note { margin: 1.2rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.support-note a { color: var(--sea); font-weight: 700; }
.support-note a:hover { text-decoration: underline; }

/* お問い合わせフォーム */
.contact-form {
  max-width: 560px; margin: 1.6rem auto 0;
  text-align: left; display: flex; flex-direction: column; gap: 1rem;
}
.field-row { display: flex; gap: 1rem; }
.field-row .field { flex: 1; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field-label .opt { font-weight: 500; color: var(--ink-soft); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: .7rem .9rem;
  font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #d7cdb8; border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #a9b3bc; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--eel-blue);
  box-shadow: 0 0 0 3px rgba(18,165,232,.15);
}
.contact-form ._gotcha,
.contact-form input[name="_gotcha"] { position: absolute; left: -9999px; }
.form-submit { align-self: center; margin-top: .3rem; cursor: pointer; }
.form-submit .ico { transform: translateY(1px); }
.form-errors { list-style: none; padding: 1rem 1.2rem; margin: 1.4rem auto 0; max-width: 460px;
  text-align: left; background: #fff2f2; border: 1.5px solid #f0b8b8; border-radius: 12px;
  color: #a13a3a; font-size: .9rem; }
.form-errors li { margin: .2rem 0; }
.back-home { margin: 2.2rem 0 0; font-size: .9rem; }
.back-home a { color: var(--ink-soft); font-weight: 600; }
.back-home a:hover { color: var(--eel-blue); }
@media (max-width: 560px) {
  .field-row { flex-direction: column; gap: 1rem; }
}

.socials {
  margin: 2rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 1.8rem;
}
.social {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  width: 116px; transition: transform .12s;
}
.social:hover { transform: translateY(-3px); }
.social-badge {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 16px rgba(20, 70, 110, .18);
}
.social-badge svg { width: 21px; height: 21px; }
.badge-x { background: #000; }
.badge-note { background: #41c9b4; }
.badge-zenn { background: #3ea8ff; }
.badge-github { background: #24292f; }
.social-text { display: flex; flex-direction: column; line-height: 1.3; text-align: center; gap: 1px; }
.social-name { font-weight: 700; font-size: .9rem; color: var(--ink); }
.social-role { font-size: .72rem; color: var(--ink-soft); }

/* ===== フッター ===== */
.site-footer {
  padding: 2rem 0; background: #0b2c4d; color: #b9cfe0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; }
.logo.small { font-size: 1.05rem; color: #fff; }
.logo.small .logo-mark { width: 22px; height: 22px; margin-right: .4rem; }

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  .hero { padding: 92px 0 100px; }
  .nav a { margin-left: 1rem; font-size: .72rem; }
  .footer-inner { flex-direction: column; gap: .5rem; }
}
