/* css/style.css */
@charset "UTF-8";

/* 色設計一級建築士事務所 - Design System */
:root {
    /* カラーパレット */
    --primary-orange: #ff7f32;      /* メインブランドカラー（明るめの親しみやすいオレンジ） */
    --secondary-beige: #fff8f2;     /* セカンダリ背景（より明るいクリーム） */
    --text-orange: #d85d1a;         /* テキストカラー（深みのあるオレンジ） */
    --base-white: #ffffff;          /* ベースホワイト */
    --base-black: #000000;          /* ベースブラック */
    
    /* グラデーションとアクセント */
    --primary-dark: #e56b26;        /* プライマリのダーク版（ホバー用） */
    --text-light: rgba(216, 93, 26, 0.7); /* 軽いテキスト */
    --border-light: rgba(216, 93, 26, 0.2); /* 軽いボーダー */
    
    /* タイポグラフィシステム */
    --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Helvetica Neue", "游ゴシック体", YuGothic, "メイリオ", Meiryo, sans-serif;
    --font-size-base: 14px;         /* CLAUDE.mdで指定された基本サイズ */
    
    /* レスポンシブフォントサイズ */
    --text-h1: 3.75rem;             /* 60px desktop */
    --text-h2: 2.5rem;              /* 40px desktop */
    --text-h3: 1.5rem;              /* 24px desktop */
    --text-base: 1rem;              /* 16px base */
    
    /* スペーシング */
    --spacing-xs: 0.25rem;          /* 4px */
    --spacing-sm: 0.5rem;           /* 8px */
    --spacing-md: 1rem;             /* 16px */
    --spacing-lg: 1.5rem;           /* 24px */
    --spacing-xl: 2rem;             /* 32px */
    --spacing-2xl: 3rem;            /* 48px */
    --spacing-3xl: 4rem;            /* 64px */
    --spacing-4xl: 5rem;            /* 80px */
    
    /* ボーダーラディウス */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* シャドウ */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* トランジション */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* レイアウト */
    --container-max-width: 1200px;
    --breakpoint-mobile: 767px;
}

/* モバイル用フォントサイズ調整 */
@media (max-width: 767px) {
    :root {
        --text-h1: 3rem;            /* 48px mobile */
        --text-h2: 2rem;            /* 32px mobile */
        --text-h3: 1.25rem;         /* 20px mobile */
    }
}

/* リセット&基本スタイル */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--base-white);
    color: var(--text-orange);
    line-height: 1.8;
    font-weight: 400;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* タイポグラフィ */
h1 {
    font-size: clamp(3rem, 5vw, var(--text-h1));
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-orange);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(2rem, 4vw, var(--text-h2));
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-orange);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 3vw, var(--text-h3));
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-orange);
    margin-bottom: var(--spacing-sm);
}

h4, h5, h6 {
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-orange);
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-orange);
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    opacity: 0.7;
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.5;
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

/* レイアウトコンポーネント */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

.section {
    padding: var(--spacing-4xl) 0;
}

.section--secondary {
    background-color: var(--secondary-beige);
}

/* ボタンコンポーネント */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn--primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 1;
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

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

.btn--large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* カードコンポーネント */
.card {
    background-color: var(--base-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.card__image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card__content {
    padding: var(--spacing-lg);
}

.card__title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.card__description {
    color: var(--text-light);
    margin-bottom: 0;
}

/* グリッドシステム */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

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

@media (max-width: 767px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Flexboxユーティリティ */
.flex {
    display: flex;
}

.flex--center {
    justify-content: center;
    align-items: center;
}

.flex--between {
    justify-content: space-between;
    align-items: center;
}

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

.flex--wrap {
    flex-wrap: wrap;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--base-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-orange);
}

.header__logo-mark {
    width: 40px;
    height: 40px;
    background-color: var(--primary-orange);
    color: var(--base-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.header__nav {
    display: none;
}

@media (min-width: 768px) {
    .header__nav {
        display: flex;
    }
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.header__nav-link {
    font-weight: 500;
    color: var(--text-orange);
    position: relative;
    padding: var(--spacing-sm) 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width var(--transition-normal);
}

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

.header__cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header__phone {
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-orange);
    font-weight: 500;
}

@media (min-width: 1024px) {
    .header__phone {
        display: flex;
    }
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 24px;
    justify-content: space-between;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle__bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-orange);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle--active .mobile-menu-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle--active .mobile-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle--active .mobile-menu-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--base-white);
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

.mobile-menu--active {
    display: flex;
}

.mobile-menu__link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-orange);
}

/* フッター */
.footer {
    background-color: var(--text-orange);
    color: var(--base-white);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer__content {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .footer__content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer__section h3 {
    color: var(--base-white);
    margin-bottom: var(--spacing-md);
}

.footer__section p,
.footer__section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer__section a:hover {
    color: var(--base-white);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ヒーローセクション（TOPページ用） */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--base-white);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ページヒーロー（下層ページ用） */
.page-hero {
    height: 400px;
    margin-top: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--base-white);
    background-color: var(--primary-orange);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(167, 126, 96, 0.8), rgba(108, 95, 82, 0.6));
}

.page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.page-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--base-white);
}

.page-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.page-hero__breadcrumb {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.page-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-hero__breadcrumb a:hover {
    color: var(--base-white);
}

.page-hero__breadcrumb-separator {
    opacity: 0.6;
}

@media (max-width: 767px) {
    .page-hero {
        height: 300px;
        margin-top: 80px;
    }
    
    .page-hero__breadcrumb {
        bottom: var(--spacing-md);
        font-size: 0.75rem;
    }
}


.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 1000px;
    width: 100%;
    padding: 0 var(--spacing-lg);
    text-align: center;
    color: var(--base-white);
}

@media (max-width: 767px) {
    .hero__content {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    color: var(--base-white);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

@media (min-width: 640px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }
}


/* ユーティリティクラス */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* アクセシビリティ */
.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;
}

/* フォーカススタイル */
:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}