/* =========================================================
   ココひるね — 共通スタイル
   穏やかで温かい、余白でゆったり見せるデザイン
   ========================================================= */

:root {
  --bg: #E7EAE0;            /* 落ち着いたグリーン寄りのオフホワイト */
  --bg-soft: #DBE0D2;
  --surface: #F1F3EC;       /* カードは背景よりわずかに明るく */
  --text: #2E352F;
  --text-muted: #5A6157;    /* いちばん淡い帯の上でも 5:1 以上 */
  --accent: #316B61;        /* ブランドカラー：くすみグリーン */
  --accent-soft: #CBDCD4;
  --sub: #4F7364;           /* 補助色：やわらかいグリーン */
  --sub-soft: #D5DECF;
  --line: #CCD3C0;
  --shadow: 0 6px 24px rgba(46, 53, 47, 0.07);

  --radius: 20px;
  --radius-sm: 12px;
  --content: 760px;

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  /* 端末がダークモードでも、明るい配色で表示する */
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 500;        /* 丸ゴシックは細く見えるので本文を一段太く */
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- ヘッダー（下層ページ用） ---------- */
.site-header {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.back-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 6.5rem 5.5rem;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 24rem;
  height: 24rem;
  top: -8rem;
  right: -7rem;
  background: var(--accent-soft);
  opacity: 0.85;
}

.hero::after {
  width: 13rem;
  height: 13rem;
  bottom: -6rem;
  left: -4rem;
  background: var(--sub-soft);
  opacity: 0.55;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.hero-latin {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* letter-spacing の余白ぶんを戻して中央に見せる */
  color: var(--text-muted);
}

.hero-tagline {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

/* ---------- セクション ---------- */
.section {
  padding-block: 4.5rem;
}

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

.section-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.origin-text p {
  margin: 0;
}

.origin-text p + p {
  margin-top: 0.6rem;
}

/* ---------- カード ---------- */
/* 「アプリ」「ブログ」のまとまり */
.works-group + .works-group {
  margin-top: 2.5rem;
}

.works-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* 見出しの右に細い線を引く */
.works-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* カードは1行に1つずつ */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.card-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
}

/* ブログの最新記事 */
.latest-posts {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.card .latest-posts-label {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li + li {
  margin-top: 0.7rem;
}

.post-list a {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
}

.post-list time {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.badge {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  color: var(--text);
}

.badge + .badge {
  margin-left: 0.4rem;
}

/* 淡いほうのグリーン（準備中バッジなど） */
.badge--warm {
  background: var(--sub-soft);
}

/* ---------- 運営者 ---------- */
.profile dl {
  margin: 0;
}

.profile dt {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.profile dd {
  margin: 0.2rem 0 1.5rem;
}

.qualifications {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qualifications li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
}

.qualifications li:last-child {
  border-bottom: 0;
}

.qualifications .org {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
}

/* ---------- お問い合わせ ---------- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .contact-form {
    padding: 2.25rem 2rem;
  }
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.required,
.optional {
  margin-left: 0.4rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 400;
  vertical-align: 0.1em;
}

.required {
  background: var(--accent-soft);
}

.optional {
  background: var(--bg-soft);
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* iOS でフォーカス時に拡大されないよう 16px 以上 */
  letter-spacing: 0.02em;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.button {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFDF9;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.button:hover {
  opacity: 0.88;
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .button {
    width: auto;
    min-width: 12rem;
  }
}

.thanks .button {
  margin-top: 1rem;
}

/* ---------- 文書ページ（privacy / tokushoho） ---------- */
.doc {
  padding-block: 3.5rem 4.5rem;
}

.doc h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 5.5vw, 1.9rem);
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.doc h2 {
  margin: 2.75rem 0 0.75rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent-soft);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 1rem;
}

.doc ul,
.doc ol {
  padding-left: 1.4rem;
}

.doc .lead {
  color: var(--text-muted);
}

.placeholder {
  background: var(--accent-soft);
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
}

.doc-dates {
  margin-top: 3rem;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
}

.law-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.law-table th,
.law-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.law-table tr:last-child th,
.law-table tr:last-child td {
  border-bottom: 0;
}

.law-table th {
  width: 34%;
  background: var(--bg-soft);
  font-weight: 700;
}

@media (max-width: 560px) {
  .law-table,
  .law-table tbody,
  .law-table tr,
  .law-table th,
  .law-table td {
    display: block;
    width: 100%;
  }

  .law-table th {
    border-bottom: 0;
    padding-bottom: 0.4rem;
  }

  .law-table td {
    padding-top: 0.4rem;
  }
}

/* ---------- フッター ---------- */
.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.2rem 0;
}
