:root {
  --bg: #f6f7f3;
  --base: #ffffff;
  --main: #14382d;
  --main-2: #0d241d;
  --sub: #245244;
  --gold: #b9974f;
  --gold-2: #d9c185;
  --text: #1f2a24;
  --muted: #65726c;
  --line: #dbe2dc;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --shadow: 0 18px 50px rgba(20, 56, 45, .12);
  --radius: 22px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219,226,220,.8);
}

.header-inner {
  width: min(100% - 36px, 1240px);
  margin-inline: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: .06em;
}

.brand-main {
  font-size: 30px;
  font-weight: 900;
  color: var(--main);
}

.brand-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}

.brand small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: .13em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--main);
}

.global-nav a:hover,
.global-nav a.active {
  background: var(--main);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--main);
  margin: 5px 0;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(185,151,79,.22), transparent 35%),
    linear-gradient(135deg, var(--main-2), var(--main));
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .6;
}

.hero-inner {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .16em;
  font-size: 13px;
}

.eyebrow.gold {
  color: var(--gold-2);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.12;
  letter-spacing: .03em;
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .04em;
  transition: .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1e211b;
  box-shadow: 0 12px 30px rgba(185,151,79,.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(185,151,79,.34);
}

.btn-outline {
  border-color: rgba(255,255,255,.38);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.btn-outline:hover {
  background: rgba(255,255,255,.16);
}

.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.hero-card p {
  margin: 0 0 18px;
  color: var(--gold-2);
  font-weight: 900;
  letter-spacing: .16em;
  font-size: 12px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 20px;
  font-weight: 800;
}

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

.section {
  padding: 92px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-head h2,
.dark-section h2,
.cta-box h2,
.company-message h2,
.service-item h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
  color: var(--main);
}

.section-head p,
.company-message p,
.service-item p,
.cta-box p {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  gap: 22px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.card-num {
  display: inline-flex;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--main);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.dark-section {
  background:
    radial-gradient(circle at 20% 10%, rgba(185,151,79,.18), transparent 28%),
    linear-gradient(135deg, var(--main-2), var(--main));
  color: #fff;
}

.dark-section h2 {
  color: #fff;
}

.dark-section p {
  color: rgba(255,255,255,.82);
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--gold-2);
  font-weight: 900;
  border-bottom: 1px solid var(--gold-2);
}

.cta-section {
  padding: 76px 0;
}

.cta-box {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 38px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(185,151,79,.22), transparent 32%),
    linear-gradient(135deg, var(--main-2), var(--main));
  color: #fff;
  padding: 94px 0;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.15;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.84);
}

.service-list {
  display: grid;
  gap: 22px;
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.service-num {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--main), var(--sub));
  color: var(--gold-2);
  font-weight: 900;
  letter-spacing: .08em;
}

.company-wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.company-message {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.company-table-wrap {
  overflow-x: auto;
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.company-table th,
.company-table td {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.company-table th {
  width: 170px;
  background: #f0f3ef;
  color: var(--main);
  text-align: left;
  font-weight: 900;
}

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

.contact-wrap {
  max-width: 900px;
}

.contact-form {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--main);
  font-weight: 900;
}

.form-group label span {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(185,151,79,.22);
  border-color: var(--gold);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-privacy {
  background: #f4f6f2;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.form-submit {
  width: 100%;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.alert-error {
  background: var(--danger-bg);
  border: 1px solid rgba(180,35,24,.25);
  color: var(--danger);
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.thanks-hero {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}

.thanks-actions {
  margin-top: 28px;
}

.site-footer {
  background: var(--main-2);
  color: #fff;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-inner strong {
  display: block;
  font-size: 20px;
  letter-spacing: .08em;
}

.footer-inner p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .1em;
}

.footer-inner small {
  color: rgba(255,255,255,.62);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 24px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    border-radius: 12px;
    padding: 14px;
  }

  .hero-inner,
  .split,
  .company-wrap {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 70px 0;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    width: min(100% - 24px, 1240px);
    min-height: 72px;
  }

  .brand-main {
    font-size: 25px;
  }

  .brand small {
    font-size: 8.5px;
  }

  .global-nav {
    top: 72px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-card,
  .card,
  .contact-form,
  .company-message,
  .service-item,
  .cta-box {
    padding: 24px;
    border-radius: 22px;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 72px 0;
  }

  .company-table {
    min-width: 480px;
  }
}

/* thanks.html スマホ見出し調整 */
.sp-only {
  display: none;
}

@media (max-width: 560px) {
  .sp-only {
    display: block;
  }

  .thanks-hero h1 {
    font-size: 48px;
    line-height: 1.35;
    letter-spacing: .02em;
  }
}

@media (max-width: 380px) {
  .thanks-hero h1 {
    font-size: 42px;
  }
}

/* company.html スマホ会社概要テーブル調整 */
@media (max-width: 560px) {
  .company-table-wrap {
    overflow-x: visible;
  }

  .company-table {
    min-width: 0;
    width: 100%;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table tr {
    border-bottom: 1px solid var(--line);
  }

  .company-table tr:last-child {
    border-bottom: 0;
  }

  .company-table th {
    width: 100%;
    padding: 16px 18px 6px;
    border-bottom: 0;
    background: #f4f6f2;
    font-size: 13px;
    letter-spacing: .04em;
  }

  .company-table td {
    padding: 6px 18px 18px;
    border-bottom: 0;
    font-size: 15px;
    line-height: 1.9;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* スマホヘッダーのブランド文字調整 */
@media (max-width: 560px) {
  .brand {
    max-width: calc(100vw - 110px);
  }

  .brand small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .08em;
  }
}


/* Privacy page and footer link */
.footer-link {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.footer-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.privacy-wrap {
  max-width: 920px;
}

.privacy-card {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 38px;
  box-shadow: var(--shadow);
}

.privacy-card h2 {
  margin: 34px 0 12px;
  color: var(--main);
  font-size: 22px;
  line-height: 1.5;
}

.privacy-card p,
.privacy-card li {
  color: var(--muted);
}

.privacy-card ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.privacy-contact {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f4f6f2;
}

.privacy-contact p {
  margin: 0 0 8px;
}

.privacy-contact p:last-child {
  margin-bottom: 0;
}

.privacy-contact a {
  color: var(--main);
  font-weight: 900;
  border-bottom: 1px solid var(--main);
}

.privacy-date {
  margin-top: 28px;
  text-align: right;
  font-size: 14px;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 900;
  color: var(--main);
}

.privacy-check input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.privacy-check a {
  color: var(--main);
  border-bottom: 1px solid var(--main);
}

.privacy-check em {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-style: normal;
  font-size: 11px;
}

@media (max-width: 560px) {
  .privacy-card {
    padding: 24px;
    border-radius: 22px;
  }

  .privacy-card h2 {
    font-size: 19px;
  }

  .privacy-date {
    text-align: left;
  }
}

/* Media publication section */
.media-section {
  padding-top: 20px;
}

.media-box {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 38px;
  box-shadow: var(--shadow);
}

.media-content {
  max-width: 880px;
}

.media-content h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  color: var(--main);
}

.media-content p {
  color: var(--muted);
  margin: 0;
}

.media-notice {
  margin: 26px 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(185,151,79,.35);
  background: #fbf8ef;
}

.media-notice strong {
  display: block;
  color: var(--main);
  margin-bottom: 8px;
  font-size: 16px;
}

.media-notice p {
  color: #5f5b4d;
  font-size: 14px;
}

.media-btn {
  margin-top: 4px;
}

@media (max-width: 560px) {
  .media-box {
    padding: 24px;
    border-radius: 22px;
  }

  .media-notice {
    padding: 16px;
  }
}

/* header logo image */
.site-brand--image {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.site-logo-image {
  display: block;
  width: auto;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .site-logo-image {
    height: 52px;
  }
}

@media (max-width: 480px) {
  .site-logo-image {
    height: 46px;
  }
}

/* Header image logo */
.brand-image-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  line-height: 1;
  min-width: 0;
}

.header-logo-img {
  display: block;
  width: auto;
  height: 54px;
  max-width: min(360px, 68vw);
  object-fit: contain;
}

@media (max-width: 768px) {
  .header-logo-img {
    height: 42px;
    max-width: 250px;
  }
}

@media (max-width: 420px) {
  .header-logo-img {
    height: 38px;
    max-width: 220px;
  }
}

/* Header logo clean adjustment */
.header-logo-img {
  height: 50px;
  max-width: 310px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .header-logo-img {
    height: 46px;
    max-width: 270px;
  }
}

@media (max-width: 420px) {
  .header-logo-img {
    height: 42px;
    max-width: 245px;
  }
}
