/*
Theme Name: Nagomi Pharmacy Theme
Theme URI: https://example.com/
Author: Nagomi Team
Description: Original WordPress theme for Nagomi Chozai Pharmacy Group
Version: 1.0.0
Text Domain: nagomi-pharmacy
*/

:root {
  --bg: #f7faf7;
  --text: #253026;
  --muted: #5e6d5f;
  --primary: #2f8f5b;
  --primary-strong: #237049;
  --accent: #ef8d5b;
  --card: #ffffff;
  --border: #dce7dd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--primary-strong);
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.site-title {
  margin: 0;
  font-size: 1.2rem;
}

.site-title a {
  color: var(--primary-strong);
}

.site-nav ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.hero {
  background: linear-gradient(120deg, #e8f6ea, #fff5ef);
  background-image:
    linear-gradient(rgba(20, 40, 20, 0.28), rgba(20, 40, 20, 0.28)),
    var(--hero-bg-image, none);
  background-size: cover;
  background-position: center;
  padding: 72px 0 64px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--primary-strong);
  border-color: var(--primary);
}

.section {
  padding: 64px 0;
}

.section h2 {
  margin-top: 0;
  font-size: 1.75rem;
}

.lead {
  color: var(--muted);
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.news-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.cta {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
}

.cta a {
  color: #fff;
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  font-size: 0.95rem;
  color: var(--muted);
  background: #fff;
}

.entry {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Tables & forms */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0 32px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #eef7f0;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.note-box {
  background: #fff8f2;
  border: 1px solid #f3d9c4;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0 24px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 900px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}



.contact-form input,
.contact-form select,
.contact-form textarea {
  font-size: 1.05rem;
}


.contact-form textarea {
  min-height: 280px;
  resize: vertical;
}

.contact-form .required::after {
  content: " *";
  color: #c2410c;
}

.form-row-inline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-row-inline input {
  width: auto;
  margin-top: 4px;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.alert-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.bullet-list li {
  margin: 6px 0;
}
.steps-list {
  margin: 12px 0 24px;
  padding-left: 1.4rem;
  color: var(--text);
}

.steps-list li {
  margin: 8px 0;
}
.consent-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}


.consent-row span {
  line-height: 1.4;
}

.consent-row a {
  text-decoration: underline;
  font-weight: 600;
}

.consent-row input {
  margin: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.consent-row span {
  margin: 0;
  white-space: nowrap;
}
.consent-row {
  display: flex !important;    /* 強制的にフレックスボックス化 */
  align-items: center !important; /* 垂直方向の中央揃え */
  justify-content: center;     /* 全体を中央寄せにしたい場合 */
  gap: 10px;                  /* チェックボックスと文字の間の隙間 */
  cursor: pointer;             /* ラベル全体を指マークに */
}

.consent-row input[type="checkbox"] {
  margin: 0;                   /* デフォルトの余計な隙間を消す */
  width: 16px;                 /* サイズを固定するとより安定します */
  height: 16px;
}