/* 仕事を休むLINEメーカー — スマホファースト */
:root {
  --bg: #f7f5f2;
  --surface: #fffcfa;
  --text: #3d4543;
  --muted: #6f7a77;
  --line-green: #b7e4c7;
  --line-green-strong: #6ba88a;
  --line-green-soft: #eef6f2;
  --accent-blue-soft: #e8f0f8;
  --border: #e8e4df;
  --shadow: 0 8px 28px rgba(61, 69, 67, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  --focus: 0 0 0 3px rgba(116, 198, 157, 0.45);
  --text-base: 1rem; /* 16px */
  --text-fine: 0.8125rem; /* 13px — 注意書き・フッター等 */
  --btn-adjust-radius: 3px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 12px;
}

.wrap {
  width: min(100% - 10px, 560px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  background: linear-gradient(180deg, var(--line-green-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  padding: 12px 15px 8px;
}

.site-path {
  margin: 0;
  font-size: var(--text-fine);
  color: var(--muted);
}

.site-path__home {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-path__home:hover {
  color: var(--line-green-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-path__home:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.muted {
  color: var(--muted);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px 15px;
  margin-bottom: 20px;
}

.card--hero {
  border-color: rgba(183, 228, 199, 0.45);
  background: linear-gradient(145deg, var(--surface) 0%, var(--line-green-soft) 100%);
}

.reassurance-note {
  margin: 16px 0 18px;
  padding: 12px 14px;
  background: var(--accent-blue-soft, #e8f0f8);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
}

.reassurance-note strong {
  color: #4a6b8a;
  font-weight: 600;
}

/* 参考例文であること（断定を避ける） */
.reassurance-note {
  font-size: 0.9375rem;
  line-height: 1.75;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 4.5vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.lead {
  margin: 0 0 12px;
  color: var(--text);
  font-size: var(--text-base);
}

.reassurance-note + .intro {
  margin-top: 4px;
}

.intro {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field label,
.field legend {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

select {
  width: 100%;
  padding: 14px 14px;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b6b6b' d='M1 0l5 8 5-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-color: var(--line-green-strong);
}

.field--radio {
  border: 0;
  padding: 0;
  margin: 0;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-base);
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-pill:has(:checked) {
  border-color: var(--line-green-strong);
  background: var(--line-green-soft);
}

.radio-pill:focus-within {
  box-shadow: var(--focus);
}

.radio-pill input {
  margin: 0;
  accent-color: var(--line-green-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn--primary {
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(180deg, #95d5b2, var(--line-green-strong));
  color: #fff;
  box-shadow: 0 6px 18px rgba(82, 160, 120, 0.35);
  font-size: 1.05rem;
  padding: 16px 24px;
}

.btn--primary:hover {
  filter: brightness(1.03);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 8px;
}

.btn--secondary:hover {
  border-color: var(--line-green-strong);
}

.btn--ghost {
  background: #f7faf8;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: var(--text-base);
  padding: 10px 14px;
  min-width: 0;
}

.btn__icon {
  flex-shrink: 0;
  display: block;
}

.btn--copy {
  width: 100%;
  margin-bottom: 0;
  background: var(--surface);
  color: var(--line-green-strong);
  border: 2px solid var(--line-green-strong);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(82, 160, 120, 0.18);
}

.btn--copy:hover {
  background: var(--line-green-soft);
  color: #256848;
  border-color: #52a078;
}

.btn--copy:active {
  transform: scale(0.99);
}

.btn--regenerate .btn__icon--rotate {
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.btn--regenerate:hover .btn__icon--rotate,
.btn--regenerate:focus-visible .btn__icon--rotate {
  transform: rotate(-200deg);
}

.btn--ghost:hover {
  background: var(--line-green-soft);
  border-color: rgba(116, 198, 157, 0.5);
}

.result-block {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.result-heading {
  font-size: 1rem;
  margin: 0 0 12px;
  font-weight: 600;
}

.card--result {
  padding: 16px 15px;
  background: #fbfffc;
  border-color: #d8eedf;
}

.output-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: var(--text-base);
  line-height: 1.85;
}

.btn-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 12px;
  column-gap: 6px;
  margin-top: 14px;
  align-items: stretch;
}

.btn-row > .btn--copy,
.btn-row > .copy-btn-group {
  grid-column: 1 / -1;
  width: 100%;
}

.btn-row > .btn-row-adjust {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.btn-row > .btn-row-adjust > .btn {
  flex: 1 1 calc(33.333% - 4px);
  min-width: 0;
}

.copy-btn-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.copy-btn-group .copy-status {
  margin: 0;
  min-height: 0;
  line-height: 1.35;
}

.copy-btn-group .copy-status:not(:empty) {
  min-height: 1.25em;
}

.copy-btn-group .copy-status:empty {
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.copy-btn-group .btn--copy {
  width: 100%;
}

.btn-row-adjust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.btn-row-adjust > .btn {
  flex: 1 1 calc(33.333% - 4px);
  min-width: 0;
  padding: 10px 8px;
  font-size: var(--text-base);
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  min-height: 44px;
  order: 0;
  border-radius: var(--btn-adjust-radius);
}

.btn-row-adjust > #btn-regenerate,
.btn-row-adjust > #btn-another,
.btn-row-adjust > .btn--regenerate {
  order: 1;
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  border-radius: var(--btn-adjust-radius);
}

.copy-status {
  min-height: 0;
  margin: 0;
  font-size: var(--text-base);
  color: var(--line-green-strong);
}

.copy-status:not(:empty) {
  min-height: 1.25em;
}

.section-title {
  font-size: 1.05rem;
  margin: 0 0 14px;
  font-weight: 600;
}

.seo h2 {
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.seo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.93rem;
  color: var(--text);
}

.seo-list strong {
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 420px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.related-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 16px 14px;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--line-green-strong);
  background: var(--line-green-soft);
  outline: none;
}

.related-card--soon {
  cursor: pointer;
}

.related-soon-msg {
  min-height: 1.25em;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: middle;
}

.note-cta p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.note-cta h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

/* 手動広告枠（非表示中・復元時は inc/ad-slot-snippet.html 参照） */
.card--ad {
  margin-top: 8px;
  padding: 14px 16px;
  box-shadow: none;
  background: #f6f7f6;
  border-style: dashed;
}

.ad-label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #9a9a9a;
  text-transform: uppercase;
}

.ad-placeholder {
  min-height: 90px;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(
    -45deg,
    #ececec,
    #ececec 8px,
    #f3f3f3 8px,
    #f3f3f3 16px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  font-size: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 40px;
  text-align: center;
  color: var(--muted);
}

.footer-legal-nav {
  margin: 0 0 12px;
}

.footer-disclaimer {
  margin: 0 0 10px;
  font-size: var(--text-fine);
  line-height: 1.7;
  color: var(--muted);
}

.footer-legal {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  font-size: var(--text-fine);
  line-height: 1.5;
}

.footer-note,
.footer-note small {
  font-size: var(--text-fine);
}

.footer-legal li {
  display: inline-block;
}

.footer-legal a {
  color: #8a8a8a;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.footer-note {
  margin: 0;
}

/* 静的ページ（プライバシー等） */
.legal-doc {
  padding-top: 8px;
}

.about-brand__tagline {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #2d6b4a;
  letter-spacing: 0.04em;
}

.about-brand h2 {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  color: #2c4a36;
}

.legal-doc h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.4;
}

.legal-doc h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 12px;
  font-size: var(--text-fine);
  color: var(--text);
  line-height: 1.8;
}

.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc .muted-small {
  font-size: 0.82rem;
  color: var(--muted);
}

/* 404 */
.error-page {
  padding-top: 8px;
}

.error-card {
  text-align: center;
}

.error-code {
  margin: 0 0 4px;
  font-size: clamp(2.5rem, 12vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--line-green-strong);
}

.error-card h1 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.error-lead {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  text-align: left;
}

.error-actions {
  margin: 0 0 24px;
}

.error-actions .btn--primary {
  display: inline-flex;
  min-width: min(100%, 240px);
}

.error-nav-heading {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: left;
}

.error-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.error-nav li {
  margin: 0 0 8px;
}

.error-nav li:last-child {
  margin-bottom: 0;
}

.error-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--line-green-strong);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.error-nav a:hover,
.error-nav a:focus-visible {
  background: var(--line-green-soft);
  border-color: var(--line-green);
  outline: none;
}

.error-nav a:focus-visible {
  box-shadow: var(--focus);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .related-card {
    transition: none;
  }

  .btn--regenerate .btn__icon--rotate {
    transition: none;
  }

  .btn--regenerate:hover .btn__icon--rotate,
  .btn--regenerate:focus-visible .btn__icon--rotate {
    transform: none;
  }
}
