/* ========================================
   リセット & ベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラー設定 */
    --primary-color: #1a3a52;
    --secondary-color: #2c5f8d;
    --accent-color: #c4a35a;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    /* フォント設定 */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    
    /* トランジション */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}


/* ========================================
   共通クラス
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-serif);
}
@media screen and (max-width: 767px) {
	.section-title {
		    font-size: 2rem;
	}
}

.section-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
    width: 100%;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
@media screen and (min-width: 768px) {
	.logo {
		max-width: 40%;
	}	
}

.logo .link-logo {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-serif);
}

.logo a:hover {
    color: var(--accent-color);
}
.logo .img-logo {
	max-width: 30%;
	margin-inline: 30px;
}
@media screen and (max-width: 767px) {
	.logo .img-logo {
		max-width: 30%;
		margin-inline: 10px;
	}	
}
.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}


/* ========================================
 * パンくずリスト
======================================== */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 15px 0;
    margin-top: 130px;
}
@media screen and (max-width: 767px) {
	.breadcrumb {
		margin-top: 70px;
	}
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb li:last-child {
    color: var(--primary-color);
    font-weight: 500;
}


/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    white-space: pre-line;
    line-height: 1.3;
    font-family: var(--font-serif);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.hero-scroll span {
    width: 1px;
    height: 40px;
    background-color: white;
    margin-bottom: 10px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0%, 100% {
        height: 40px;
    }
    50% {
        height: 60px;
    }
}

/* ========================================
   事務所概要
======================================== */
.about {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-heading {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 30px;
    font-family: var(--font-serif);
}

.about-heading:first-child {
    margin-top: 0;
}

.about-description {
    color: var(--text-light);
    line-height: 1.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: start;
    gap: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   サービス
======================================== */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.service-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    font-family: var(--font-serif);
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-list i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.service-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.service-link i {
    margin-left: 5px;
    font-size: 0.9rem;
}

/* ========================================
   私たちの強み
======================================== */
.strengths {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.strengths-grid {
    display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.strength-card {
    padding: 40px 30px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.strength-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.strength-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

.strength-card:hover::before {
    transform: scaleX(1);
}

.strength-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 15px;
    font-family: var(--font-serif);
}

.strength-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.strength-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ========================================
   サービスの流れ
======================================== */
.flow {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.flow-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.flow-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.flow-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.flow-item:last-child {
    margin-bottom: 0;
}

.flow-step {
    position: relative;
    z-index: 2;
}

.flow-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(26, 58, 82, 0.3);
}

.flow-content {
    flex: 1;
    background-color: var(--bg-white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.flow-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.flow-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.flow-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   会社情報
======================================== */
.company {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.company-info {
    max-width: 900px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
}

.company-table th,
.company-table td {
    padding: 25px 30px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

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

.company-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    width: 200px;
}

.company-table td {
    color: var(--text-color);
    line-height: 1.8;
}

/* ========================================
   お問い合わせ
======================================== */
.contact {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.contact-heading {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.contact-text {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text-wrapper h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-text-wrapper p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-phone {
    color: var(--accent-color);
}

.contact-hours {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-email {
    color: var(--secondary-color);
    word-break: break-all;
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group .required {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ========================================
   フッター
======================================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}
@media screen and (max-width: 767px) {
  .footer {
	  padding: 60px 30px 20px;
	}
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-serif);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-column ul li i {
    margin-right: 8px;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========================================
   トップへ戻るボタン
======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   レスポンシブデザイン
======================================== */

/* タブレット */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 30px 20px;
        height: 100%;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: block;
        padding: 20px 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        min-height: 500px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .about,
    .services,
    .strengths,
    .flow,
    .company,
    .contact {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-timeline::before {
        left: 20px;
    }
    
    .flow-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .flow-item {
        gap: 20px;
    }
    
    .company-table th,
    .company-table td {
        padding: 15px;
        display: block;
        width: 100%;
    }
    
    .company-table th {
        background-color: var(--bg-light);
        color: var(--primary-color);
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .company-table td {
        padding-top: 5px;
        padding-bottom: 20px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .strength-card {
        padding: 30px 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
}