/*
 * TSUNA Tools Core v3.0.0
 * 共通UIのみを収録。各ツール固有のレイアウトは各プラグイン側で定義します。
 */
:root {
  --tsuna-primary: #1f6f5f;
  --tsuna-primary-dark: #154d43;
  --tsuna-primary-soft: #e7f4ef;
  --tsuna-accent: #e85f89;
  --tsuna-accent-dark: #bd3f67;
  --tsuna-accent-soft: #fff0f5;
  --tsuna-text: #20302c;
  --tsuna-muted: #6f7e79;
  --tsuna-border: #d8e5e1;
  --tsuna-surface: #ffffff;
  --tsuna-background: #f4f8f6;
  --tsuna-danger: #bd3f67;
  --tsuna-radius-sm: 10px;
  --tsuna-radius: 14px;
  --tsuna-radius-lg: 18px;
  --tsuna-shadow-sm: 0 5px 15px rgba(23, 79, 69, .06);
  --tsuna-shadow: 0 10px 28px rgba(23, 79, 69, .08);
  --tsuna-focus: 0 0 0 3px rgba(31, 111, 95, .12);
}

.tsuna-tool,
.tsuna-tool * {
  box-sizing: border-box;
}

.tsuna-tool {
  color: var(--tsuna-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.tsuna-tool button,
.tsuna-tool input,
.tsuna-tool select,
.tsuna-tool textarea {
  font: inherit;
}

.tsuna-tool button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tsuna-card {
  border: 1px solid rgba(31, 111, 95, .13);
  border-radius: var(--tsuna-radius-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--tsuna-shadow);
}

.tsuna-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .68rem 1rem;
  border: 1px solid var(--tsuna-primary);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tsuna-primary), #2c8a76);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(31, 111, 95, .16);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease,
    background-color .15s ease;
}

.tsuna-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(31, 111, 95, .2);
}

.tsuna-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(31, 111, 95, .14);
}

.tsuna-btn:focus-visible,
.tsuna-input:focus-visible,
.tsuna-select:focus-visible,
.tsuna-textarea:focus-visible {
  outline: none;
  box-shadow: var(--tsuna-focus);
}

.tsuna-btn.secondary {
  border-color: var(--tsuna-border);
  background: #fff;
  color: var(--tsuna-text);
  box-shadow: none;
}

.tsuna-btn.secondary:hover {
  border-color: #b9cec7;
  background: #f8fbfa;
  color: var(--tsuna-primary-dark);
}

.tsuna-btn.danger {
  border-color: #efbfd0;
  background: var(--tsuna-accent-soft);
  color: var(--tsuna-danger);
  box-shadow: none;
}

.tsuna-btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--tsuna-primary-dark);
  box-shadow: none;
}

.tsuna-btn:disabled,
.tsuna-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
  box-shadow: none;
}

.tsuna-input,
.tsuna-select,
.tsuna-textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--tsuna-border);
  border-radius: 12px;
  background: #fbfdfc;
  color: var(--tsuna-text);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.tsuna-input:focus,
.tsuna-select:focus,
.tsuna-textarea:focus {
  outline: none;
  border-color: var(--tsuna-primary);
  background: #fff;
  box-shadow: var(--tsuna-focus);
}

.tsuna-tabs {
  display: grid;
  grid-template-columns: repeat(var(--tsuna-tab-count, 2), minmax(0, 1fr));
  gap: 7px;
}

.tsuna-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #eef4f2;
  color: var(--tsuna-primary-dark);
  box-shadow: none;
}

.tsuna-tab:hover {
  background: #e5efeb;
  color: var(--tsuna-primary-dark);
  box-shadow: none;
}

.tsuna-tab.is-active,
.tsuna-tab[aria-selected="true"] {
  border-color: var(--tsuna-primary);
  background: linear-gradient(135deg, var(--tsuna-primary), #2c8a76);
  color: #fff;
  box-shadow: 0 7px 16px rgba(31, 111, 95, .22);
}

.tsuna-modal[hidden] {
  display: none !important;
}

.tsuna-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.tsuna-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 36, 31, .58);
  backdrop-filter: blur(3px);
}

.tsuna-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  max-height: 82vh;
  overflow: auto;
  padding: 17px;
  animation: tsuna-core-pop .18s ease-out;
}

.tsuna-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tsuna-modal__title {
  margin: 0;
  color: var(--tsuna-primary-dark);
  font-size: 23px;
}

.tsuna-modal__close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--tsuna-border);
  border-radius: 11px;
  background: #f5f8f7;
  color: var(--tsuna-text);
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
}

.tsuna-modal__close:hover {
  background: #edf4f1;
  color: var(--tsuna-primary-dark);
  box-shadow: none;
}

.tsuna-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tsuna-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.tsuna-table th,
.tsuna-table td {
  padding: 9px;
  border-right: 1px solid var(--tsuna-border);
  border-bottom: 1px solid var(--tsuna-border);
}

.tsuna-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tsuna-primary-soft);
  color: var(--tsuna-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

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

@keyframes tsuna-core-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tsuna-tool *,
  .tsuna-tool *::before,
  .tsuna-tool *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   TSUNA shared compact tool hero
   ========================================================= */
.tsuna-tool-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 92px;
  padding: 15px 18px;
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(125deg, #103f39 0%, #17685a 48%, #24917b 100%);
  color: #fff;
  box-shadow:
    0 12px 26px rgba(14, 64, 55, .18),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.tsuna-tool-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 145px;
  height: 145px;
  top: -88px;
  right: -35px;
  border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, .07);
}

.tsuna-tool-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 105px;
  height: 105px;
  left: -48px;
  bottom: -72px;
  border-radius: 50%;
  background: rgba(232, 95, 137, .20);
}

.tsuna-tool-hero__shine {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(255,255,255,.07) 49%, transparent 57%);
}

.tsuna-tool-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.tsuna-tool-hero__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  box-shadow:
    0 8px 18px rgba(4, 35, 30, .18),
    inset 0 1px 0 rgba(255,255,255,.35);
}

.tsuna-tool-hero__mark::before,
.tsuna-tool-hero__mark::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f4d4bd;
  border: 3px solid #fff;
}

.tsuna-tool-hero__mark::before { left: 5px; }
.tsuna-tool-hero__mark::after { right: 5px; }

.tsuna-tool-hero__mark-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #eaf7f2);
  color: var(--tsuna-primary-dark);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.08em;
  box-shadow: 0 5px 10px rgba(5, 47, 40, .16);
}

.tsuna-tool-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: rgba(255,255,255,.72);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tsuna-tool-hero__eyebrow::before {
  content: "";
  width: 16px;
  height: 3px;
  border-radius: 99px;
  background: var(--tsuna-accent);
}

.tsuna-tool-hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
}

.tsuna-tool-hero__brand {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 950;
  text-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.tsuna-tool-hero__product {
  display: inline-flex;
  align-items: center;
  padding: .10em .30em .14em;
  border-radius: .30em;
  background: linear-gradient(135deg, #ff82a7, #df4f7b);
  color: #fff;
  font-size: clamp(22px, 4.4vw, 31px);
  font-weight: 950;
  letter-spacing: .01em;
  box-shadow:
    0 6px 14px rgba(138, 28, 64, .23),
    inset 0 1px 0 rgba(255,255,255,.25);
  transform: rotate(-1deg);
}

.tsuna-tool-hero__subtitle {
  margin: 5px 0 0;
  color: rgba(255,255,255,.80);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.tsuna-tool-hero__meta,
.tsuna-tool-hero__badge,
.tsuna-tool-hero__mini-score {
  display: none !important;
}

@media (max-width: 600px) {
  .tsuna-tool-hero {
    min-height: 78px;
    padding: 12px 13px;
    border-radius: 17px;
  }

  .tsuna-tool-hero__content {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .tsuna-tool-hero__mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .tsuna-tool-hero__mark::before,
  .tsuna-tool-hero__mark::after {
    width: 13px;
    height: 13px;
    border-width: 2px;
  }

  .tsuna-tool-hero__mark-symbol {
    width: 33px;
    height: 33px;
    border-radius: 10px;
    font-size: 15px;
  }

  .tsuna-tool-hero__eyebrow {
    display: none;
  }

  .tsuna-tool-hero__brand {
    font-size: clamp(23px, 8vw, 31px);
  }

  .tsuna-tool-hero__product {
    font-size: clamp(19px, 6.7vw, 26px);
  }

  .tsuna-tool-hero__subtitle {
    margin-top: 4px;
    font-size: 9px;
  }
}



/* =========================================================
   TSUNA Tools Core v3 — Compact white tool header
   WordPressテーマ側の見出し装飾も確実に解除します。
   ========================================================= */
.tsuna-tool .tsuna-tool-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 10px 14px 12px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31,111,95,.14);
  border-radius: 17px;
  background: #fff !important;
  background-image: none !important;
  color: var(--tsuna-text);
  box-shadow: 0 8px 22px rgba(22,72,63,.07);
}
.tsuna-tool .tsuna-tool-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tsuna-primary) 0 68%, var(--tsuna-accent) 68% 100%);
}
.tsuna-tool .tsuna-tool-header__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #cfe3dc;
  border-radius: 13px;
  background: linear-gradient(145deg,#f2faf7,#e4f3ed) !important;
  color: var(--tsuna-primary-dark);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 1px 0 #fff;
}
.tsuna-tool .tsuna-tool-header__copy { min-width: 0; }
.tsuna-tool .tsuna-tool-header__title,
.tsuna-tool .tsuna-tool-header__title::before,
.tsuna-tool .tsuna-tool-header__title::after,
.tsuna-tool .tsuna-tool-header__title span,
.tsuna-tool .tsuna-tool-header__title strong {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.tsuna-tool .tsuna-tool-header__title::before,
.tsuna-tool .tsuna-tool-header__title::after { content: none !important; display: none !important; }
.tsuna-tool .tsuna-tool-header__title {
  display: flex !important;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--tsuna-primary-dark) !important;
  font-size: clamp(22px,5vw,29px) !important;
  line-height: 1 !important;
  letter-spacing: -.035em !important;
  font-weight: 950 !important;
  text-transform: none !important;
}
.tsuna-tool .tsuna-tool-header__brand { color: var(--tsuna-primary-dark) !important; }
.tsuna-tool .tsuna-tool-header__product { color: var(--tsuna-accent) !important; }
.tsuna-tool .tsuna-tool-header__subtitle {
  margin: 5px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tsuna-muted) !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
}
@media (max-width:560px){
 .tsuna-tool .tsuna-tool-header{min-height:58px;padding:8px 11px 10px;border-radius:14px;gap:9px}
 .tsuna-tool .tsuna-tool-header__mark{width:38px;height:38px;border-radius:11px;font-size:13px}
 .tsuna-tool .tsuna-tool-header__title{font-size:22px !important}
 .tsuna-tool .tsuna-tool-header__subtitle{font-size:9px !important;margin-top:4px !important}
}
