/*
Theme Name: Nexid Theme
Theme URI: https://nexid.jp/
Author: Nexid
Author URI: https://nexid.jp/
Description: 合同会社Nexid公式テーマ
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexid-theme
Tags: corporate, business, responsive, custom-logo, custom-menu, featured-images
*/

@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-text: #1F2937;
  --color-heading: #111827;
  --color-accent: #0284C7;
  --color-accent-hover: #0369A1;
  --color-border: #E5E7EB;
  --color-text-muted: #6B7280;
  --color-bg-alt: #F0F9FF;
  --color-bg-footer: #F8FAFC;
  --color-error: #DC2626;

  /* Typography */
  --font-family-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-family-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Layout */
  --max-width: 1100px;
  --section-padding-y: 100px;
  --section-padding-y-mobile: 60px;
  
  /* Utilities */
  --border-radius: 6px;
  --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-en);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Apply Japanese font family to elements that need it */
body, input, textarea, button {
  font-family: var(--font-family-ja);
}

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

a:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: 1.4;
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding-y) 0;
}

.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 3px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,rgb(250,243,255) 0%,rgb(191,226,255) 100%);
  padding: var(--section-padding-y) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}

.hero-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-heading);
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 40px;
  background-color: var(--color-bg);
}

.service-title {
  font-size: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-bg-alt);
  color: var(--color-accent);
}

.service-desc {
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* ==========================================================================
   Company Profile Section
   ========================================================================== */
.company-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.company-table th,
.company-table td {
  padding: 24px;
  border: none; 
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  vertical-align: top;
}

.company-table th {
  width: 180px;
  text-align: left;
  font-weight: 600;
  background-color: var(--color-bg);
  color: var(--color-heading);
  border-left: 3px solid var(--color-accent);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-desc {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: normal;
  vertical-align: middle;
}

.form-badge.required {
  background-color: var(--color-error);
  color: white;
}

.form-badge.optional {
  background-color: var(--color-border);
  color: var(--color-text-muted);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 16px;
  background-color: var(--color-bg);
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 160px;
}

.form-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.form-checkbox {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox-label {
  cursor: pointer;
}

.form-submit {
  text-align: center;
}

.btn-submit {
  display: inline-block;
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 16px 60px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--color-accent-hover);
  text-decoration: none;
}

.btn-submit:disabled {
  background-color: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.contact-fallback {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-bg-footer);
  padding: 60px 0;
  color: var(--color-text-muted);
}

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

.footer-nav a {
  color: var(--color-text-muted);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   WordPress Core Classes
   ========================================================================== */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 20px;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

.sticky {
  /* スティッキー投稿用スタイル */
}

.bypostauthor {
  /* 投稿者によるコメント用スタイル */
}

/* ==========================================================================
   Blog & Archive Pages
   ========================================================================== */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding-y) 24px;
}

.content-wrapper.full-width .main-content {
  max-width: 100%;
}

.post-list {
  display: grid;
  gap: 40px;
}

.post-item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--color-bg);
  transition: var(--transition);
}

.post-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content-wrapper {
  padding: 32px;
}

.post-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.post-title a {
  color: var(--color-heading);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--color-accent);
}

.post-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.post-excerpt {
  margin-bottom: 16px;
}

.read-more {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--color-accent-hover);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
}

.pagination a,
.pagination .current {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

.pagination a:hover {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.pagination .current {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* Single Post */
.single-post-content {
  max-width: 800px;
  margin: 0 auto;
}

.entry-header {
  margin-bottom: 40px;
}

.entry-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.9;
}

.entry-content h2 {
  font-size: 26px;
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.entry-content h3 {
  font-size: 22px;
  margin: 40px 0 20px;
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.tag-link:hover {
  background-color: var(--color-accent);
  color: white;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  gap: 20px;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition);
}

.nav-previous a:hover,
.nav-next a:hover {
  border-color: var(--color-accent);
  background-color: var(--color-bg-alt);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  max-width: 800px;
  margin: 60px auto 0;
  padding-top: 60px;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 24px;
  margin-bottom: 32px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.comment-author {
  font-weight: 600;
  margin-bottom: 8px;
}

.comment-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.comment-content {
  line-height: 1.8;
}

.comment-reply-link {
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
}

.comment-form {
  margin-top: 48px;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  font-family: inherit;
}

.comment-form input[type="submit"] {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.comment-form input[type="submit"]:hover {
  background-color: var(--color-accent-hover);
}

/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */
.page-header {
  background-color: var(--color-bg-alt);
  padding: 80px 0 60px;
  text-align: center;
}

.page-title {
  font-size: 32px;
}

.document-content {
  max-width: 800px;
  margin: 0 auto;
}

.document-content h2 {
  font-size: 24px;
  margin: 60px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.document-content p, .document-content ul {
  margin-bottom: 24px;
}

.document-content ul {
  padding-left: 24px;
}

.document-content li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .section {
    padding: var(--section-padding-y-mobile) 0;
  }
  
  .section-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .hero {
    min-height: 50vh;
  }

  .hero-copy {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .hero-lead {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 24px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 16px;
  }
  
  .company-table th {
    border-bottom: none;
    padding-bottom: 8px;
  }
  
  .company-table td {
    padding-top: 0;
  }
  
  .company-table tr {
    display: block;
    border-bottom: 1px solid var(--color-border);
  }
  
  .company-table tr:last-child {
    border-bottom: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .post-navigation {
    flex-direction: column;
  }
}
