/* 寝坊した時の謝罪LINEメーカー — オレンジ統一 / 最大幅480px */
:root {
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: #fff7ed;
  --line-touch: #f97316;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #222;
  --muted: #5a5a5a;
  --border: #eee;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 6px 26px rgba(249, 115, 22, 0.1);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic,
    "Noto Sans JP", Meiryo, sans-serif;
  --focus: 0 0 0 3px rgba(249, 115, 22, 0.35);
  --wrap-max: 480px;
}

*,
*::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% - 28px, var(--wrap-max));
  margin: 0 auto;
  padding: 20px 0 36px;
}

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

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

.site-path {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}

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

.site-path__home:hover {
  color: var(--accent);
  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);
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.22rem, 4vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.lead-block {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.82;
}

.lead-block p {
  margin: 0 0 8px;
}

.lead-block p:last-child {
  margin-bottom: 0;
}

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

.card--heroish {
  border-color: rgba(249, 115, 22, 0.22);
  background: linear-gradient(160deg, #fff 0%, #fffdf8 100%);
}

.card--result {
  border-color: rgba(249, 115, 22, 0.28);
  background: #fffefb;
}

.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: 20px;
}

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

.field .step-label {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

select,
.text-input {
  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);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%235a5a5a' 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,
.text-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.text-input::placeholder {
  color: #aaa;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 15px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, filter 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, #fdba74, var(--accent));
  color: #fff;
  font-size: 1.02rem;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35);
}

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

.btn--line {
  width: 100%;
  background: var(--line-touch);
  color: #fff;
  font-size: 0.94rem;
  padding: 13px 18px;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.28);
}

.btn--line:hover {
  filter: brightness(1.05);
}

.btn--copy {
  width: 100%;
  margin-bottom: 6px;
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
  font-size: 0.94rem;
  padding: 12px 16px;
}

.btn--copy:hover {
  background: var(--accent-soft);
}

.btn--ghost {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
  background: #f5f5f5;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 11px 12px;
}

.btn--ghost:hover {
  background: var(--accent-soft);
  border-color: rgba(249, 115, 22, 0.35);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.result-heading {
  font-size: 0.94rem;
  margin: 0 0 10px;
  font-weight: 800;
}

.output-text-wrap {
  width: 100%;
  margin: 0;
  padding: 15px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fafafa;
}

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

.copy-status {
  min-height: 1.35em;
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(90px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.92);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.section-title {
  font-size: 1rem;
  margin: 0 0 12px;
  font-weight: 800;
}

.seo-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.78;
}

.seo-list li {
  margin-bottom: 12px;
}

.seo-list li:last-child {
  margin-bottom: 0;
}

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

.seo-subheading {
  margin: 20px 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.seo-subheading:first-of-type {
  margin-top: 0;
}

.seo-para {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.78;
}

.seo-template {
  margin: 10px 0 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(249, 115, 22, 0.35);
  background: var(--accent-soft);
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text);
}

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

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

.related-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 15px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

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

.related-card:focus-visible {
  box-shadow: var(--focus);
}

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

.ad-label {
  margin: 0 0 6px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: #999;
  text-transform: uppercase;
}

.ad-placeholder {
  min-height: 88px;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(
    -45deg,
    #ececec,
    #ececec 8px,
    #f3f3f3 8px,
    #f3f3f3 16px
  );
}

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

.site-footer-inner {
  width: min(100% - 28px, var(--wrap-max));
  margin: 0 auto;
}

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

.footer-legal {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  font-size: 0.7rem;
  line-height: 1.5;
}

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

.footer-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer {
  margin: 0 0 12px;
  font-size: 0.76rem;
  line-height: 1.75;
  text-align: left;
  color: #888;
}

.footer-extra {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.2);
  font-size: 0.76rem;
  line-height: 1.72;
  text-align: left;
  color: #6b5330;
}

.footer-extra p {
  margin: 0 0 8px;
}

.footer-extra p:last-child {
  margin-bottom: 0;
}

.footer-note {
  margin: 0;
  font-size: 0.7rem;
}

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

/* tool-ui-shared の緑ヒーロー／青ボタンを、このページだけオレンジ系に統一 */
body[data-tool-slug="nebou-line"] .benri-tool .hero.card--hero,
body[data-tool-slug="nebou-line"] .benri-tool .card--hero {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(145deg, #fff 0%, #fff7ed 100%);
}

body[data-tool-slug="nebou-line"] .benri-tool .card--hero .reassurance-note {
  background: #fff3e6;
  border: 1px solid rgba(249, 115, 22, 0.22);
  color: #6b5330;
}

body[data-tool-slug="nebou-line"] .benri-tool .card--hero .reassurance-note strong {
  color: #c2410c;
}

body[data-tool-slug="nebou-line"] .benri-tool .btn--primary {
  background-color: var(--accent) !important;
  background-image: linear-gradient(180deg, #fdba74, var(--accent)) !important;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35) !important;
}

body[data-tool-slug="nebou-line"] .benri-tool .btn--copy {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

body[data-tool-slug="nebou-line"] .benri-tool .btn--ghost:hover {
  background: var(--accent-soft) !important;
  border-color: rgba(249, 115, 22, 0.35) !important;
}

body[data-tool-slug="nebou-line"] .benri-tool .output-text-wrap {
  background: #f4f4f4 !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: none !important;
}

body[data-tool-slug="nebou-line"] .benri-tool .example-card {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
}

body[data-tool-slug="nebou-line"] .benri-tool .example-card__label {
  color: #666;
}

body[data-tool-slug="nebou-line"] .benri-tool .example-card__text {
  color: #333;
}

body[data-tool-slug="nebou-line"] .benri-tool .btn--example-copy {
  color: #555;
  border-color: #d0d0d0;
  background: #fafafa;
}

body[data-tool-slug="nebou-line"] .benri-tool .btn--example-copy:hover {
  background: #eee;
  border-color: #bbb;
}

body[data-tool-slug="nebou-line"] .form--urgent {
  gap: 16px;
}

body[data-tool-slug="nebou-line"] .form--urgent .field label {
  font-size: 0.85rem;
}
