/*
Theme Name: じろう行政書士事務所
Theme URI:
Author: じろう行政書士事務所
Description: 補助金申請サポート専門の行政書士事務所向けWordPressテーマ
Version: 1.0.0
Text Domain: gyoseishoshi
*/

/* ========================================
   リセット & ベース
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
  line-height: 1.8;
  background-color: #fff;
}

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

ul, ol {
  list-style: none;
}

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

/* ========================================
   共通ユーティリティ
======================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #1a3a5c;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.btn-outline {
  background: transparent;
  color: #1a73e8;
  border: 2px solid #1a73e8;
}

.btn-outline:hover {
  background: #1a73e8;
  color: #fff;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a3a5c;
}

.site-logo span {
  color: #1a73e8;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #1a73e8;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #1a73e8;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* モバイルメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
  padding-top: 80px;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: #1a73e8;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1a3a5c;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: #1a73e8;
}

.hero-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1a73e8;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: #666;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c3dafe, #93b5f1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a3a5c;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 20px 60px rgba(26, 115, 232, 0.15);
}

/* ========================================
   特徴セクション
======================================== */
.features {
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e8eef5;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}

/* ========================================
   補助金一覧セクション
======================================== */
.subsidies {
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%);
}

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

.subsidy-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s ease;
  border: 1px solid #e8eef5;
}

.subsidy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.subsidy-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.subsidy-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 8px;
}

.subsidy-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

.subsidy-tag {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ========================================
   ご利用の流れ
======================================== */
.flow {
  background: #fff;
}

.flow-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 20px;
}

.flow-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 80px;
  right: 80px;
  height: 3px;
  background: #d4e3f5;
}

.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.flow-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
}

.flow-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 8px;
}

.flow-step-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* ========================================
   ブログ・お知らせセクション
======================================== */
.blog-section {
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e8eef5;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #d4e3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a3a5c;
  font-size: 0.9rem;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 8px;
}

.blog-card-category {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 8px;
  line-height: 1.5;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
}

.blog-more {
  text-align: center;
}

/* ========================================
   CTAセクション
======================================== */
.cta-section {
  background: linear-gradient(135deg, #1a3a5c, #0d47a1);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-section .section-title {
  color: #fff;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.cta-section .btn-primary {
  background: #fff;
  color: #1a73e8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background: #1a2a3a;
  color: #ccc;
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #1a73e8;
}

.footer-sns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-sns a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.footer-sns a:hover {
  background: #1a73e8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* ========================================
   お問い合わせページ
======================================== */
.contact-section {
  padding-top: 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: #e8f0fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #1a73e8;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 4px;
}

.contact-info-text p {
  color: #666;
  font-size: 0.95rem;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: #1a3a5c;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-form .required {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-left: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d4e3f5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #f8fafc;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1a73e8;
  background: #fff;
}

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

.contact-form .btn {
  width: 100%;
}

/* ========================================
   サービスページ
======================================== */
.page-header {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  color: #1a3a5c;
  margin-bottom: 12px;
}

.page-header p {
  color: #666;
  font-size: 1.05rem;
}

.service-detail {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.service-detail:nth-child(even) {
  flex-direction: row-reverse;
}

.service-detail-content {
  flex: 1;
}

.service-detail-image {
  flex: 1;
  aspect-ratio: 4/3;
  background: #e8f0fe;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a3a5c;
}

.service-detail-content h2 {
  font-size: 1.6rem;
  color: #1a3a5c;
  margin-bottom: 12px;
}

.service-detail-content p {
  color: #555;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* ========================================
   ブログ一覧ページ
======================================== */
.blog-archive {
  padding-top: 120px;
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #d4e3f5;
  color: #1a3a5c;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

/* ブログ記事ページ */
.single-post-content {
  padding-top: 120px;
  max-width: 780px;
  margin: 0 auto;
}

.single-post-content h1 {
  font-size: 2rem;
  color: #1a3a5c;
  margin-bottom: 16px;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  gap: 16px;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8eef5;
}

.post-body {
  font-size: 1.05rem;
  line-height: 2;
  color: #444;
}

.post-body h2 {
  font-size: 1.5rem;
  color: #1a3a5c;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a73e8;
}

.post-body h3 {
  font-size: 1.25rem;
  color: #1a3a5c;
  margin: 32px 0 12px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body ul, .post-body ol {
  margin: 16px 0;
  padding-left: 24px;
  list-style: disc;
}

.post-body li {
  margin-bottom: 8px;
}

/* SNSシェアボタン */
.share-buttons {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e8eef5;
  text-align: center;
}

.share-buttons-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 16px;
}

.share-buttons-list {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.3s ease;
}

.share-btn:hover {
  opacity: 0.85;
}

.share-btn-x { background: #000; }
.share-btn-facebook { background: #1877f2; }
.share-btn-line { background: #06c755; }

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* モバイルメニュー展開時 */
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-header.nav-open .main-nav li {
    border-bottom: 1px solid #eee;
  }

  .site-header.nav-open .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .features-grid,
  .blog-grid,
  .blog-list-grid {
    grid-template-columns: 1fr;
  }

  .subsidies-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
  }

  .flow-steps::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .service-detail,
  .service-detail:nth-child(even) {
    flex-direction: column;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
