/* 1万年堂エージェンシー 静的サイト */
:root {
  --color-main: #000000;
  --color-text: #333333;
  --color-link: #1176d4;
  --color-bg: #fdfdfd;
  --color-footer-bg: #000000;
  --color-footer-text: #ffffff;
  --color-border: rgba(0, 0, 0, 0.15);
  --container-width: 1200px;
  --article-width: 900px;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

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

html {
  scroll-behavior: smooth;
  line-break: strict;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
  word-break: normal;
}

/* Japanese typography / line breaks */
h1,
h2,
h3,
.section-title,
.page-title,
.hero__title,
.news-item__title,
.catchphrase,
.form-label,
.info-table th,
.button {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

p,
li,
.section-lead,
.info-table td,
.form-notice p,
.article-body p,
.breadcrumb,
.site-footer small {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

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

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

a:hover {
  text-decoration: underline;
}

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

.article {
  width: min(100%, var(--article-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--color-bg);
}

.site-header__bar {
  color: #fff;
  background: #000;
}

.site-header__bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
  padding-block: 4px;
}

.catchphrase {
  margin: 0;
  color: inherit;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.02em;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-icons__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin: 0;
  padding: 4px 6px;
  box-sizing: content-box;
  color: inherit;
  line-height: 1;
}

.header-icons__btn:hover {
  opacity: 0.7;
  text-decoration: none;
}

.site-header__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 20px;
}

.logo img {
  display: block;
  width: auto;
  height: 47px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: #111;
}

.hero__slides {
  position: relative;
  height: 50vh;
  min-height: 280px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0.2;
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.1);
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFAQMAAAC3obSmAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURUdwTAAAAJ8qhFEAAAABdFJOUwBA5thmAAAAEklEQVQI12MwYDBgYGBoYGAAAASKAOH8MS30AAAAAElFTkSuQmCC");
  background-size: 2px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 72px;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.6;
}

.hero__lead {
  margin: 0;
  max-width: 36em;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  line-height: 1.9;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 0 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transform: translateX(-50%);
}

.hero__scroll-arrow {
  width: 22px;
  height: 22px;
  fill: currentColor;
  animation: hero-scroll 1.8s ease-in-out infinite;
}

.hero__scroll-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero__dot.is-active {
  background: #fff;
}

@keyframes hero-scroll {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(3px);
    opacity: 0.65;
  }
}

/* Sections */
.content {
  padding: 64px 0 80px;
}

.section {
  margin-bottom: 72px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 1.75em;
  padding: 0;
  color: var(--color-main);
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.news-item {
  border-bottom: 1px solid var(--color-border);
}

.news-item__link {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 16px 24px;
  align-items: center;
  padding: 20px 16px;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.news-item__link:hover {
  background: rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.news-item__date {
  color: #666;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-item__title {
  font-size: 1.05rem;
  line-height: 1.6;
}

.news-item__arrow {
  color: var(--color-main);
  font-size: 1.1rem;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.news-item__link:hover .news-item__arrow {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .news-item__link {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 16px 12px;
  }

  .news-item__date {
    grid-column: 1 / -1;
    font-size: 0.85rem;
  }
}

/* Company table: 二重線（セルのあいだにすき間） */
.info-table {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-collapse: separate;
  border-spacing: 2px;
  background: #fff;
  line-height: 1.6;
  text-align: left;
}

.info-table th,
.info-table td {
  padding: 0.5em 0.75em;
  border: 1px solid #dcdcdc;
  background: #fff;
  background-clip: padding-box;
  vertical-align: top;
}

.info-table th {
  width: 20%;
  min-width: 160px;
  background: hsla(0, 0%, 59%, 0.05);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.info-table td {
  word-break: normal;
}

/* Contact form */
.section-lead {
  margin: 0 auto 2.5em;
  max-width: 32em;
  text-align: center;
  font-size: 0.95rem;
}

.contact-form {
  background: transparent;
  border: 0;
  padding: 0;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0;
}

.form-row + .form-row {
  margin-top: 30px;
}

.form-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  width: 35%;
  margin: 0;
  padding-top: 15px;
  font-weight: 400;
}

.form-field {
  width: 65%;
}

.form-label span {
  display: inline-block;
  flex-shrink: 0;
  margin-right: 0;
  padding: 6px 14px;
  border-radius: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  vertical-align: 1px;
}

.form-label .required {
  background: #be1d1d;
}

.form-label .optional {
  background: #878d8e;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 0;
  font: inherit;
  color: #333;
  background: #f4f4f4;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #b5b5b5;
}

.form-field textarea {
  min-height: 220px;
  resize: vertical;
}

.form-actions {
  margin-top: 60px;
  padding-left: 72px;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 60px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.6s;
}

.button:hover {
  opacity: 0.6;
}

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

.form-notice {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 2px;
}

.form-notice p {
  margin: 0;
}

.form-notice.success {
  background: #f1f9ee;
  border: 1px solid #63a84d;
  color: #2d5016;
}

.form-notice.error {
  background: #fff2f0;
  border: 1px solid #e44141;
  color: #8b1a1a;
}

/* Article page */
.page-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.5;
}

.page-meta {
  margin: 16px 0 0;
  color: #666;
  font-size: 0.9rem;
}

.article-body {
  padding: 40px 0 80px;
}

.article-body p {
  margin: 0 0 1.5em;
}

.breadcrumb {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumb a {
  color: inherit;
}

/* Map */
.office-map {
  position: relative;
  width: 100%;
  height: 300px;
  background: #e8e8e8;
}

.office-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 28px 16px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer small {
  display: inline-block;
  max-width: 36em;
}

/* Utilities */
.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;
}

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

  .hero__slides {
    height: 50vh;
  }

  .form-label,
  .form-field {
    width: 100%;
  }

  .form-label {
    margin-bottom: 15px;
    padding-top: 0;
  }

  .form-row + .form-row {
    margin-top: 24px;
  }

  .form-row + .form-row .form-field {
    margin-top: 0;
  }

  .form-actions {
    padding-left: 0;
  }

  .button {
    width: 180px;
    height: 56px;
  }

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

  .info-table {
    border-spacing: 0;
    padding: 2px;
  }

  .info-table th,
  .info-table td {
    margin-top: 2px;
    padding: 1em;
    white-space: normal;
  }

  .info-table tr:first-child th {
    margin-top: 0;
  }
}

@media (min-width: 960px) {
  .hero__slides {
    height: 30vw;
    min-height: 360px;
  }
}
