/*
Theme Name: Shigi
Theme URI: https://example.com/shigi
Author: Your Name
Author URI: https://example.com
Description: A modern WordPress theme for administrative scrivener office
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shigi
*/

/* Base Styles */
:root {
    --primary-color: #599DD9;
    --secondary-color: #4A90E2;
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --border-radius: 8px;
    --container-width: 1800px;
    --container-padding: 1.5rem;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-width, 1800px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding, 1.5rem);
    padding-right: var(--container-padding, 1.5rem);
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary-color);
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header-top {
    margin: 0;
    padding: 0.5rem 0;
}

.site-branding img,
.site-branding svg {
    max-height: 80px;
    min-height: 48px;
    width: auto;
    height: auto;
    display: block;
}

.header-top .flex.items-center {
    gap: 1.5rem;
}

.header-top .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top .text-primary {
    color: var(--primary-color);
}

.header-top .text-xl {
    font-size: 1.25rem;
}

.header-top .font-bold {
    font-weight: 700;
}

.header-top .rounded-md {
    border-radius: 6px;
}

.header-top a {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.header-top a:hover {
    opacity: 0.9;
}

.header-nav {
    background: #17607b;
    width: 100%;
}

.header-nav .container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2.5rem !important;
    padding: 0 !important;
}

.header-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 1.5rem !important;
}

.header-nav .search-area {
    display: flex !important;
    align-items: center !important;
    min-width: 140px !important;
    margin-right: 0 !important;
}

.header-nav .main-navigation {
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.header-nav .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2rem !important;
    color: #fff !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-nav .nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.header-nav .nav-menu a {
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 1rem 0.5rem !important;
    display: inline-block !important;
    transition: color 0.2s !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
}

.header-nav .nav-menu a:hover,
.header-nav .nav-menu .current-menu-item a {
    color: #ffec80 !important;
    text-decoration: underline !important;
}

.header-nav .search-area form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    padding: 0.1rem 0.5rem;
    height: 38px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-nav .search-area input[type="search"] {
    border: none;
    outline: none;
    padding: 0.3rem 0.7rem;
    font-size: 1rem;
    border-radius: 4px 0 0 4px;
    min-width: 100px;
    background: transparent;
    color: #333;
}

/* Footer */
.footer-main {
    background-color: #17607b;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-brand {
    margin-bottom: 1.2rem;
}

.footer-brand img {
    max-height: 60px;
        width: auto;
    }

    .footer-description {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-title {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.contact-list li, 
.hours-list li {
    margin-bottom: 0.75rem;
    }
    
.social-links {
    margin-top: 1.25rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #17607b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    background-color: #1c7da1;
    transform: translateY(-5px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 1.25rem;
}

/* Service Detail Section */
.service-detail-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.service-detail-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.service-detail-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.service-detail-section p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 17px;
}

.service-detail-section .service-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
    }
    
.service-detail-section .feature-item {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-detail-section .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-detail-section .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.service-detail-section .service-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .service-detail-section {
        padding: 80px 0;
    }
  
    .service-detail-section h2 {
        font-size: 32px;
    }
  
    .service-detail-section h3 {
        font-size: 24px;
}

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

    .service-detail-section .service-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-detail-section {
        padding: 60px 0;
    }
    
    .service-detail-section h2 {
        font-size: 28px;
    }
    
    .service-detail-section h3 {
        font-size: 22px;
    }

    .service-detail-section .service-features {
        grid-template-columns: 1fr;
    }
    
    .service-detail-section .service-list {
        grid-template-columns: 1fr;
    }
  
    .service-detail-section .feature-item, 
    .service-detail-section .service-card {
        padding: 25px 20px;
}

    .service-detail-section .service-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

/* 料金プランセクション改善 */
#price {
    padding: 120px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

#price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
    }
    
#price .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
      margin: 0 auto;
    padding: 0 20px;
    }
    
#price .text-center {
    margin-bottom: 80px;
    }
    
#price h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 25px;
    line-height: 1.2;
      position: relative;
      display: inline-block;
    padding-bottom: 15px;
    }
    
#price h2::after {
      content: '';
      position: absolute;
    bottom: 0;
      left: 50%;
      transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-primary, #4169e1);
    border-radius: 2px;
    }
    
#price p {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    max-width: 760px;
      margin: 0 auto;
}

/* 料金プランカード - 余裕あるレイアウト */
#price .grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 80px;
}

#price .bg-white {
  flex: 1;
    max-width: 350px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#price .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 2;
}

/* 人気プランのハイライト */
#price .bg-white.transform {
    z-index: 2;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--color-primary, #4169e1);
    transform: scale(1.05);
}

#price .bg-white.transform:hover {
    transform: translateY(-5px) scale(1.05);
}

/* プランヘッダー */
#price .bg-primary {
    padding: 35px 25px;
        text-align: center;
    background-color: var(--color-primary, #4169e1) !important;
    color: white;
}

#price .bg-primary.bg-opacity-10 {
    background-color: rgba(65, 105, 225, 0.1) !important;
    color: inherit;
}

#price h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

#price .text-3xl {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    color: var(--color-primary, #4169e1);
}

#price .bg-primary .text-3xl {
    color: white;
}

#price .text-sm {
    font-size: 14px;
    opacity: 0.8;
}

/* プラン機能リスト */
#price .p-6 {
    padding: 35px;
}

#price ul.space-y-3 {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 35px;
}

#price li.flex {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

#price .w-6 {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 12px;
      display: flex;
      align-items: center;
    justify-content: center;
}

#price .text-primary {
    color: var(--color-primary, #4169e1);
}

#price .text-gray-300 {
    color: #cbd5e0;
    }

#price .ml-2 {
    margin-left: 0;
    font-size: 16px;
    line-height: 1.6;
}

#price .text-gray-700 {
    color: #4a5568;
}

#price .text-gray-400 {
    color: #a0aec0;
}

/* プランフッター */
#price .mt-6 {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

#price .text-sm.text-gray-500 {
    font-size: 14px;
    color: #718096;
    margin-bottom: 25px;
}

/* CTA ボタン */
#price a.block,
#price a.inline-block {
    display: block;
    text-align: center;
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 80%;
    margin: 0 auto;
}

#price a.border {
    border: 2px solid var(--color-primary, #4169e1);
    color: var(--color-primary, #4169e1);
}

#price a.border:hover {
    background-color: var(--color-primary, #4169e1);
    color: white;
}

#price a.bg-primary {
    background-color: var(--color-primary, #4169e1);
    color: white;
    border: 2px solid var(--color-primary, #4169e1);
}

#price a.bg-primary:hover {
    background-color: transparent;
    color: var(--color-primary, #4169e1);
}

/* その他の料金表 - 横長ボックス */
#price .bg-white.rounded-lg.shadow-md.p-8 {
    border-radius: 12px;
    background-color: white;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

#price .bg-white.rounded-lg.shadow-md.p-8 h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1a202c;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

/* 横長テーブルレイアウト */
#price .grid.grid-cols-1.md\:grid-cols-2.gap-6 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

/* 各サービス項目を横並びに */
#price .grid.grid-cols-1.md\:grid-cols-2.gap-6 > div {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    #price .grid.grid-cols-1.md\:grid-cols-2.gap-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #price .bg-white.rounded-lg.shadow-md.p-8 {
        padding: 20px;
}

    #price a.block,
    #price a.inline-block {
    width: 100%;
    }
  
    #price .grid.grid-cols-1.md\:grid-cols-2.gap-6 > div {
        gap: 10px;
    }
}

/* WordPress Contact Form 7 用スタイル */
.contact-section-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    margin-bottom: 20px;
    color: #666;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    min-width: 20px;
    margin-top: 5px;
    }
    
.contact-form {
    flex: 2;
    min-width: 300px;
}

/* Remix iconフォント対応 */
[class^="ri-"], [class*=" ri-"] {
    font-family: 'remixicon' !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ボタンスタイル修正 */
a.inline-block, a.block {
    text-decoration: none;
}

/* テーブルスタイル */
table {
    width: 100%;
    border-collapse: collapse;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
}

/* ちらつき防止用 */
html {
    scroll-behavior: smooth;
}

/* リセット - セクション余白の問題を解決 */
section,
div.section,
.section,
.about-section,
#services,
#members,
#culture,
#work {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pattern-section,
.site-main > section,
.site-main > div,
.entry-content > section,
.entry-content > div {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.hero-section-custom + .about-section,
.about-section + #services,
#services + #members,
#members + #culture,
#culture + #work {
    margin-top: 0 !important;
}

/* ヒーローセクション直後の余白をリセット */
.hero-section-custom:after,
.hero-section-custom + *:before {
    display: none !important;
    content: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* レスポンシブナビゲーション対応 */
@media (max-width: 992px) {
    .header-nav-inner {
        flex-direction: row;
        padding: 0.8rem 1.5rem;
    }
    
    .header-nav .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
}